-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.sh
executable file
·36 lines (31 loc) · 909 Bytes
/
package.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/bash
CLI_VERSION=1.20.1
rm -rf ./bin && mkdir ./bin
# Mac OSX
OUTPUT_PATH=ikatago-$CLI_VERSION-mac-osx
mkdir -p ./bin/$OUTPUT_PATH
GOOS=darwin GOARCH=amd64 go build -o ./bin/$OUTPUT_PATH/ikatago
cd ./bin
zip -r $OUTPUT_PATH.zip $OUTPUT_PATH
cd - >/dev/null
# linux
OUTPUT_PATH=ikatago-$CLI_VERSION-linux
mkdir -p ./bin/$OUTPUT_PATH
GOOS=linux GOARCH=amd64 go build -o ./bin/$OUTPUT_PATH/ikatago
cd ./bin
zip -r $OUTPUT_PATH.zip $OUTPUT_PATH
cd - >/dev/null
# windows 64bit
OUTPUT_PATH=ikatago-$CLI_VERSION-win64
mkdir -p ./bin/$OUTPUT_PATH
GOOS=windows GOARCH=amd64 go build -o ./bin/$OUTPUT_PATH/ikatago.exe
cd ./bin
zip -r $OUTPUT_PATH.zip $OUTPUT_PATH
cd - >/dev/null
# windows 32bit
OUTPUT_PATH=ikatago-$CLI_VERSION-win32
mkdir -p ./bin/$OUTPUT_PATH
GOOS=windows GOARCH=386 CGO_ENABLED=0 go build -o ./bin/$OUTPUT_PATH/ikatago.exe
cd ./bin
zip -r $OUTPUT_PATH.zip $OUTPUT_PATH
cd - >/dev/null