Skip to content

Commit b9726a5

Browse files
committed
更新生成shell
1 parent 6ec46de commit b9726a5

File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@ v3/example/java/.project
2121
v3/example/java/.settings/org.eclipse.buildship.core.prefs
2222
v3/example/binary/*.bin
2323
*.zip
24+
*.gz
25+
tabtoy

Make.sh

+29-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
#!/usr/bin/env bash
22

3-
export GOPROXY=https://goproxy.io
3+
#export GOPROXY=https://goproxy.io
44

5-
go build -v -o ./tabtoy.exe github.com/davyxu/tabtoy
5+
if [ "$1" == "" ]
6+
then
7+
echo "Usage: Make.sh version"
8+
exit 1
9+
fi
10+
11+
Version=$1
12+
13+
export GOARCH=amd64
14+
export GOOS=windows
15+
16+
go build -v -o ./tabtoy.exe github.com/davyxu/tabtoy
17+
18+
tar zcvf tabtoy-${Version}-win64.tar.gz ./tabtoy.exe
19+
20+
export GOARCH=amd64
21+
export GOOS=linux
22+
23+
go build -v -o ./tabtoy github.com/davyxu/tabtoy
24+
25+
tar zcvf tabtoy-${Version}-linux-x86_64.tar.gz ./tabtoy
26+
27+
export GOARCH=amd64
28+
export GOOS=darwin
29+
30+
go build -v -o ./tabtoy github.com/davyxu/tabtoy
31+
32+
tar zcvf tabtoy-${Version}-osx-x86_64.tar.gz ./tabtoy

0 commit comments

Comments
 (0)