From ae755ffec27a69bb12ee1575d3b04a031778bc88 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Wed, 29 Jun 2022 14:50:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=AF=91=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.sh b/build/build.sh index fed8381b..ef58326c 100755 --- a/build/build.sh +++ b/build/build.sh @@ -99,7 +99,7 @@ function build() { # build echo "building "${NAME}" ..." - env GOOS=$OS GOARCH=$ARCH go build -tags $TAG -ldflags="-s -w" -o $DIST/bin/${NAME} $ROOT/../cmd/edge-admin/main.go + env GOOS=$OS GOARCH=$ARCH go build -trimpath -tags $TAG -ldflags="-s -w" -o $DIST/bin/${NAME} $ROOT/../cmd/edge-admin/main.go # delete hidden files find $DIST -name ".DS_Store" -delete