From 8f0be54a8d5ccf68817143d8c996147ec5cbd795 Mon Sep 17 00:00:00 2001 From: OneOfOne Date: Tue, 5 Nov 2019 12:42:16 -0600 Subject: [PATCH] add -trimpath to build script --- cmd/xxhsum/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/xxhsum/build.sh b/cmd/xxhsum/build.sh index 584c964..6b55f6a 100644 --- a/cmd/xxhsum/build.sh +++ b/cmd/xxhsum/build.sh @@ -2,5 +2,5 @@ VERSION=$1 -env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-s -w" -o xxhsum64-${VERSION}.exe || exit 1 -env GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -ldflags "-s -w" -o xxhsum32-${VERSION}.exe || exit 1 +env GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o xxhsum64-${VERSION}.exe || exit 1 +env GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -trimpath -ldflags "-s -w" -o xxhsum32-${VERSION}.exe || exit 1