From 66ec0d882f6e4bcd6d9318c59e8c8b9a174d8115 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Dec 2024 13:44:05 +0900 Subject: [PATCH] dist: build with -trimpath Signed-off-by: Ophestra --- dist/release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/release.sh b/dist/release.sh index 861ae19..bc7d157 100755 --- a/dist/release.sh +++ b/dist/release.sh @@ -8,7 +8,7 @@ mkdir -p "${out}" cp -v "README.md" "dist/fsurc.default" "dist/install.sh" "${out}" cp -rv "comp" "${out}" -go build -v -o "${out}/bin/" -ldflags "-s -w +go build -trimpath -v -o "${out}/bin/" -ldflags "-s -w -X git.gensokyo.uk/security/fortify/internal.Version=${VERSION} -X git.gensokyo.uk/security/fortify/internal.Fsu=/usr/bin/fsu -X git.gensokyo.uk/security/fortify/internal.Finit=/usr/libexec/fortify/finit