From 34b1ad9d1e0b8d3d68d21d2216260caacf4f8c72 Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 19 Feb 2025 18:01:05 +0100 Subject: [PATCH] remove symbols and crap from released binaries --- mkrel.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mkrel.sh b/mkrel.sh index ca167f1..29cee76 100755 --- a/mkrel.sh +++ b/mkrel.sh @@ -53,7 +53,8 @@ for D in $DIST; do tardir="${tool}-${os}-${arch}-${version}" tarfile="releases/${tool}-${os}-${arch}-${version}.tar.gz" set -x - GOOS=${os} GOARCH=${arch} go build -tags osusergo,netgo -ldflags "-extldflags=-static" -o ${binfile} + GOOS=${os} GOARCH=${arch} go build -tags osusergo,netgo -ldflags "-extldflags=-static -w" --trimpath -buildmode=pie -o ${binfile} + strip --strip-all ${binfile} mkdir -p ${tardir} cp ${binfile} README.md LICENSE ${tardir}/ echo 'tool = kleingebaeck