Added -trimpath to build flags
This commit is contained in:
parent
6ff79b1817
commit
ba016a86a3
2
build.sh
2
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
|
||||
|
|
Loading…
Reference in New Issue