diff --git a/build.sh b/build.sh index b2b934e8..79f74ca4 100644 --- a/build.sh +++ b/build.sh @@ -31,8 +31,6 @@ function upload() { cd $SHELL_PATH -packr2 - go build -ldflags "-s -w -X 'trojan/trojan.MVersion=`git describe --tags $(git rev-list --tags --max-count=1)`' -X 'trojan/trojan.BuildDate=`TZ=Asia/Shanghai date "+%Y%m%d-%H%M"`' -X 'trojan/trojan.GoVersion=`go version|awk '{print $3,$4}'`' -X 'trojan/trojan.GitVersion=`git rev-parse HEAD`'" -o "result/trojan" . cd result @@ -48,6 +46,4 @@ echo "upload completed!" cd $SHELL_PATH -packr2 clean - rm -rf result \ No newline at end of file