From d53ab80848e4b086b21627e4377e33da0f705bca Mon Sep 17 00:00:00 2001 From: bjdgy Date: Fri, 2 Feb 2024 19:22:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E9=9D=99=E6=80=81=E7=BC=96?= =?UTF-8?q?=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.sh b/build.sh index 093dc9d..c17be85 100644 --- a/build.sh +++ b/build.sh @@ -20,8 +20,8 @@ cd $cpath/web #国内可替换源加快速度 #npx browserslist@latest --update-db -yarn install --registry=https://registry.npmmirror.com -yarn run build +#yarn install --registry=https://registry.npmmirror.com +#yarn run build RETVAL $? echo "编译二进制文件" @@ -31,7 +31,9 @@ cp -rf $cpath/web/ui . # -tags osusergo,netgo,sqlite_omit_load_extension flags="-v -trimpath" -ldflags="-s -w -extldflags '-static' -X main.appVer=$ver -X main.commitId=$(git rev-parse HEAD) -X main.date=$(date -Iseconds)" + +# -extldflags '-static' +ldflags="-s -w -X main.appVer=$ver -X main.commitId=$(git rev-parse HEAD) -X main.date=$(date -Iseconds)" #国内可替换源加快速度 export GOPROXY=https://goproxy.io