From b4724c42acccf57feb9d1b85e3767d3b7d483943 Mon Sep 17 00:00:00 2001 From: Nadeesha Cabral Date: Mon, 25 Oct 2021 21:41:08 +1100 Subject: [PATCH] fix: Build binaries without debug symbols --- build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 857c826..0996248 100755 --- a/build.sh +++ b/build.sh @@ -14,7 +14,7 @@ do output_name+='.exe' fi - env GOOS=$GOOS GOARCH=$GOARCH go build -o bin/$output_name $package + env GOOS=$GOOS GOARCH=$GOARCH go build -ldflags "-s -w" -o bin/$output_name $package if [ $? -ne 0 ]; then echo 'An error has occurred! Aborting the script execution...' exit 1