-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
25 lines (14 loc) · 748 Bytes
/
build.sh
File metadata and controls
25 lines (14 loc) · 748 Bytes
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
#!/bin/bash
# Set GOPATH to windows path
GOOS="linux" GOARCH="amd64" go build -o "./bin/ccms"
GOOS="windows" GOARCH="amd64" go build -o "./bin/ccms.exe"
GOOS="darwin" GOARCH="amd64" go build -o "./bin/ccms_mac"
cd bin
mkdir -p checksums
sha256sum ccms_mac > ./checksums/checksum_sha256_mac.txt
7z a -ttar -so -an ccms_mac ./checksums/checksum_sha256_mac.txt ../LICENSE | 7z a -si ./compressed/ccms_mac.tgz
sha256sum ccms > ./checksums/checksum_sha256_linux.txt
7z a -ttar -so -an ccms ./checksums/checksum_sha256_linux.txt ../LICENSE | 7z a -si ./compressed/ccms_linux.tgz
sha256sum ccms.exe > ./checksums/checksum_sha256_windows.txt
7z a ./compressed/ccms_windows.zip ccms.exe ./checksums/checksum_sha256_windows.txt ../LICENSE
cd ..