diff --git a/build.sh b/build.sh index c959803..057bff0 100644 --- a/build.sh +++ b/build.sh @@ -36,7 +36,7 @@ cp -rf $cpath/web/ui . #国内可替换源加快速度 export GOPROXY=https://goproxy.io go mod tidy -go build -v -o anylink -ldflags "-X main.CommitId=$(git rev-parse HEAD)" +go build -v -o anylink -ldflags "-s -w -X main.CommitId=$(git rev-parse HEAD)" RETVAL $? cd $cpath