mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-09-11 05:06:54 +08:00
Update build.sh
This commit is contained in:
4
build.sh
4
build.sh
@@ -37,8 +37,8 @@ cd $cpath/server
|
|||||||
rm -rf ui
|
rm -rf ui
|
||||||
cp -rf $cpath/web/ui .
|
cp -rf $cpath/web/ui .
|
||||||
|
|
||||||
flags="-v -trimpath -extldflags '-static' -tags osusergo,netgo,sqlite_omit_load_extension"
|
flags="-v -trimpath -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)"
|
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
|
if [ "$github_action" == "github_action" ]; then
|
||||||
echo "github_action"
|
echo "github_action"
|
||||||
|
Reference in New Issue
Block a user