Skip to content

Commit

Permalink
优化编译脚本
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Apr 2, 2021
1 parent 235ffe5 commit c33d61a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -48,6 +46,4 @@ echo "upload completed!"

cd $SHELL_PATH

packr2 clean

rm -rf result

0 comments on commit c33d61a

Please sign in to comment.