Skip to content

Commit

Permalink
try and trim down binary size
Browse files Browse the repository at this point in the history
  • Loading branch information
mikew committed Nov 10, 2024
1 parent 7cfd20f commit f6d09fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cp manifest.json src/

for os in "${OSES[@]}"; do
for arch in "${ARCHS[@]}"; do
GOOS="$os" GOARCH="$arch" go build -o "dist/$(basename "$PWD")-$os-$arch" ./src/main.go
GOOS="$os" GOARCH="$arch" go build -ldflags "-s -w" -o "dist/$(basename "$PWD")-$os-$arch" ./src/main.go
done
done

Expand Down

0 comments on commit f6d09fe

Please sign in to comment.