shithub: mycel

Download patch

ref: 0f5bb23f370d44870c782b82d29bf87801acf33d
parent: 612c7ae57b92e3b1a56a606c415a26cccfe7c210
author: Philip Silva <philip.silva@protonmail.com>
date: Sat Feb 27 03:13:45 EST 2021

Smaller executable

--- a/img/img.go
+++ b/img/img.go
@@ -209,7 +209,6 @@
 		if err != nil {
 			return nil, fmt.Errorf("decode %v: %w", imgUrl, err)
 		}
-		// check err
 
 		newImage := resize.Resize(uint(w), uint(h), image, resize.Lanczos3)
 
--- a/package.rc
+++ b/package.rc
@@ -11,7 +11,7 @@
 
 echo Compiling...
 cd cmd/browse
-go build -o $name.bin
+go build -ldflags '-s -w' -o $name.bin
 cd ../..
 mv cmd/browse/$name.bin .
 mv $name.bin ./$name/