diff --git a/build.sh b/build.sh index 17ee959..50553cd 100755 --- a/build.sh +++ b/build.sh @@ -52,5 +52,5 @@ for platform in "${platforms[@]}"; do if [ "${GOOS}" == "windows" ]; then output_name+=".exe" fi - env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" CGO_ENABLED=0 go build -ldflags "${ld_flags}" -o "builds/${output_name}" + env GOOS="${GOOS}" GOARCH="${GOARCH}" CC="musl-gcc" CGO_ENABLED=0 go build -trimpath -ldflags "${ld_flags}" -o "builds/${output_name}" done