Skip to content

Commit b0f46b7

Browse files
committed
sh
1 parent 5b03e9c commit b0f46b7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

build/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,22 @@ echo $lastTag > version.txt
44
# Linux
55
GO_ENABLED=0 GOOS=linux GOARCH=amd64
66
target="hotbuild_${lastTag}_${GOOS}_${GOARCH}"
7-
go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/
7+
GO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/
88
cd build/
9-
zip -mr $target.zip $target
9+
# zip -mr $target.zip $target
1010
cd ..
1111
# macosx
1212
GO_ENABLED=0 GOOS=darwin GOARCH=amd64
1313
target="hotbuild_${lastTag}_${GOOS}_${GOARCH}"
14-
go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/
14+
GO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/
1515
cd build/
16-
zip -mr $target.zip $target
16+
# zip -mr $target.zip $target
1717
cd ..
1818
# windows
1919
GO_ENABLED=0 GOOS=windows GOARCH=amd64
2020
target="hotbuild_${lastTag}_${GOOS}_${GOARCH}"
21-
go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/
21+
GO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags="-X 'main.Version=$lastTag'" -o ./build/$target/
2222
cd build/
23-
zip -mr $target.zip $target
23+
# zip -mr $target.zip $target
2424
cd ..
2525

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v1.0.3
1+
v1.0.4

0 commit comments

Comments
 (0)