Commit b9726a5 1 parent 6ec46de commit b9726a5 Copy full SHA for b9726a5
File tree 2 files changed +31
-2
lines changed
2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -21,3 +21,5 @@ v3/example/java/.project
21
21
v3 /example /java /.settings /org.eclipse.buildship.core.prefs
22
22
v3 /example /binary /* .bin
23
23
* .zip
24
+ * .gz
25
+ tabtoy
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
- export GOPROXY=https://goproxy.io
3
+ # export GOPROXY=https://goproxy.io
4
4
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
You can’t perform that action at this time.
0 commit comments