Update build.sh

This commit is contained in:
bjdgyc 2024-01-29 00:25:18 +08:00 committed by GitHub
parent 87e50e8e0d
commit 41278f722d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ cd $cpath/server
rm -rf ui
cp -rf $cpath/web/ui .
flags="-v -trimpath -extldflags '-static' -tags osusergo,netgo,sqlite_omit_load_extension"
ldflags="-s -w -X main.appVer=$ver -X main.commitId=$(git rev-parse HEAD) -X main.date=$(date --iso-8601=seconds)"
flags="-v -trimpath -tags osusergo,netgo,sqlite_omit_load_extension"
ldflags="-s -w -extldflags '-static' -X main.appVer=$ver -X main.commitId=$(git rev-parse HEAD) -X main.date=$(date --iso-8601=seconds)"
if [ "$github_action" == "github_action" ]; then
echo "github_action"