From b0f46b772ae7b7a16af4fed92407c3ffb94f00be Mon Sep 17 00:00:00 2001 From: lishenmiao Date: Tue, 6 Jul 2021 15:59:48 +0800 Subject: [PATCH] sh --- build/build.sh | 12 ++++++------ version.txt | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/build/build.sh b/build/build.sh index defdf08..d21e235 100644 --- a/build/build.sh +++ b/build/build.sh @@ -4,22 +4,22 @@ echo $lastTag > version.txt # Linux GO_ENABLED=0 GOOS=linux GOARCH=amd64 target="hotbuild_${lastTag}_${GOOS}_${GOARCH}" -go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/ +GO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/ cd build/ -zip -mr $target.zip $target +# zip -mr $target.zip $target cd .. # macosx GO_ENABLED=0 GOOS=darwin GOARCH=amd64 target="hotbuild_${lastTag}_${GOOS}_${GOARCH}" -go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/ +GO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/ cd build/ -zip -mr $target.zip $target +# zip -mr $target.zip $target cd .. # windows GO_ENABLED=0 GOOS=windows GOARCH=amd64 target="hotbuild_${lastTag}_${GOOS}_${GOARCH}" -go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/ +GO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/ cd build/ -zip -mr $target.zip $target +# zip -mr $target.zip $target cd .. diff --git a/version.txt b/version.txt index e946d6b..3e7bcf0 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -v1.0.3 +v1.0.4