forked from deweizhu/bookget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.sh
29 lines (20 loc) · 1.23 KB
/
build.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
ver="1.1.6"
mkdir -p target/bookget-${ver}.linux/
mkdir -p target/bookget-${ver}.macOS/
mkdir -p target/bookget-${ver}.macOS-arm64/
#CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o target/bookget-${ver}.windows/bookget.exe .
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o target/bookget-${ver}.linux/bookget .
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o target/bookget-${ver}.macOS/bookget .
CGO_ENABLED=0 GOOS=darwin GOARCH=arm64 go build -o target/bookget-${ver}.macOS-arm64/bookget .
cp cookie.txt target/bookget-${ver}.linux/cookie.txt
cp cookie.txt target/bookget-${ver}.macOS/cookie.txt
cp cookie.txt target/bookget-${ver}.macOS-arm64/cookie.txt
#cp cookie.txt target/bookget-${ver}.windows/cookie.txt
cp target/dezoomify-rs/linux-amd64/dezoomify-rs target/bookget-${ver}.linux/dezoomify-rs
cp target/dezoomify-rs/darwin-amd64/dezoomify-rs target/bookget-${ver}.macOS/dezoomify-rs
cp target/dezoomify-rs/darwin-arm64/dezoomify-rs target/bookget-${ver}.macOS-arm64/dezoomify-rs
cd target/
#7za a -t7z bookget-${ver}.windows.7z bookget-${ver}.windows
tar cjf bookget-${ver}.linux.tar.bz2 bookget-${ver}.linux
tar cjf bookget-${ver}.macOS.tar.bz2 bookget-${ver}.macOS
tar cjf bookget-${ver}.macOS-arm64.tar.bz2 bookget-${ver}.macOS-arm64