Skip to content

Commit 944cf8a

Browse files
committed
优化编译参数
1 parent f451702 commit 944cf8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: build.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ GITHASH=`git rev-parse HEAD 2>/dev/null`
99
BUILDAT=`date +%FT%T%z`
1010

1111
# Setup the -ldflags option for go build here, interpolate the variable values
12-
LDFLAGS="-X github.com/TruthHun/BookStack/utils.GitHash=${GITHASH} -X github.com/TruthHun/BookStack/utils.BuildAt=${BUILDAT} -X github.com/TruthHun/BookStack/utils.Version=${VERSION} -X myquant.cn/algoserv/algoserv/admin.Binary=true"
12+
LDFLAGS="-s -w -X github.com/TruthHun/BookStack/utils.GitHash=${GITHASH} -X github.com/TruthHun/BookStack/utils.BuildAt=${BUILDAT} -X github.com/TruthHun/BookStack/utils.Version=${VERSION} -X myquant.cn/algoserv/algoserv/admin.Binary=true"
1313

1414
##########
1515

0 commit comments

Comments
 (0)