-
Notifications
You must be signed in to change notification settings - Fork 3
/
build_all.sh
executable file
·58 lines (56 loc) · 1.54 KB
/
build_all.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
build_template() {
export GOOS=$1
export GOARCH=$2
export GOARM=7
ext=$3
date=$(date +'%Y.%m.%d')
version=${CIRCLE_BUILD_NUM-$date}
tag=v$version-$(git log --format=%h -1)
echo $tag-$GOOS-$GOARCH
go build -ldflags="-s -w -X main.Version=$tag" -o ./bin/comics-dl-$tag-$GOOS-$GOARCH$ext
}
build_template aix ppc64
# build_template android 386
# build_template android amd64
# build_template android arm
# build_template android arm64
build_template darwin 386
build_template darwin amd64
# build_template darwin arm
# build_template darwin arm64
build_template dragonfly amd64
build_template freebsd 386
build_template freebsd amd64
build_template freebsd arm
build_template illumos amd64
# build_template js wasm
build_template linux 386
build_template linux amd64
build_template linux arm
build_template linux arm64
build_template linux mips
build_template linux mips64
build_template linux mips64le
build_template linux mipsle
build_template linux ppc64
build_template linux ppc64le
build_template linux s390x
# build_template nacl 386
# build_template nacl amd64p32
# build_template nacl arm
build_template netbsd 386
build_template netbsd amd64
build_template netbsd arm
build_template netbsd arm64
build_template openbsd 386
build_template openbsd amd64
build_template openbsd arm
build_template openbsd arm64
# build_template plan9 386
# build_template plan9 amd64
# build_template plan9 arm
build_template solaris amd64
build_template windows 386 .exe
build_template windows amd64 .exe
build_template windows arm .exe