Skip to content

Commit

Permalink
Merge pull request #18 from markphelps/patch-1
Browse files Browse the repository at this point in the history
Build smaller binaries
  • Loading branch information
mislav authored Jun 8, 2022
2 parents 23c367c + c672c52 commit d5fc2c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build_and_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ else
if [[ "${goos}" == "windows" ]]; then
ext=".exe"
fi
GOOS=${goos} GOARCH=${goarch} go build -o "dist/${goos}-${goarch}${ext}"
GOOS=${goos} GOARCH=${goarch} go build -trimpath -ldflags="-s -w" -o "dist/${goos}-${goarch}${ext}"
done
fi

Expand Down

0 comments on commit d5fc2c1

Please sign in to comment.