-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.sh
64 lines (52 loc) · 3.37 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
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
59
60
61
62
63
64
# linux x86_64
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/release/linux_x86_64/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/release/linux_x86_64/server ./server/main.go
zip "bin/linux_x86_64.zip" bin/release/linux_x86_64/*
# linux x86
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o bin/release/linux_x86/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -o bin/release/linux_x86/server ./server/main.go
zip "bin/linux_x86.zip" bin/release/linux_x86/*
# linux arm
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o bin/release/linux_arm/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm go build -o bin/release/linux_arm/server ./server/main.go
zip "bin/linux_arm.zip" bin/release/linux_arm/*
# linux arm64
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/release/linux_arm64/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -o bin/release/linux_arm64/server ./server/main.go
zip "bin/linux_arm64.zip" bin/release/linux_arm64/*
# linux ppc64
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64 go build -o bin/release/linux_ppc64/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64 go build -o bin/release/linux_ppc64/server ./server/main.go
zip "bin/linux_ppc64.zip" bin/release/linux_ppc64/*
# linux ppc64le
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -o bin/release/linux_ppc64le/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -o bin/release/linux_ppc64le/server ./server/main.go
zip "bin/linux_ppc64le.zip" bin/release/linux_ppc64le/*
# linux mips
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -o bin/release/linux_mips/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -o bin/release/linux_mips/server ./server/main.go
zip "bin/linux_mips.zip" bin/release/linux_mips/*
# linux mipsle
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -o bin/release/linux_mipsle/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -o bin/release/linux_mipsle/server ./server/main.go
zip "bin/linux_mipsle.zip" bin/release/linux_mipsle/*
# linux mips64
CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -o bin/release/linux_mips64/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -o bin/release/linux_mips64/server ./server/main.go
zip "bin/linux_mips64.zip" bin/release/linux_mips64/*
# linux mips64le
CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -o bin/release/linux_mips64le/client ./client/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -o bin/release/linux_mips64le/server ./server/main.go
zip "bin/linux_mips64le.zip" bin/release/linux_mips64le/*
# windows x86_64
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/release/windows_x86_64/client.exe ./client/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o bin/release/windows_x86_64/server.exe ./server/main.go
zip "bin/windows_x86_64.zip" bin/release/windows_x86_64/*
# windows x86
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o bin/release/windows_x86/client.exe ./client/main.go
CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -o bin/release/windows_x86/server.exe ./server/main.go
zip "bin/windows_x86.zip" bin/release/windows_x86/*
#mac os x86_64
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/release/macos/client ./client/main.go
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o bin/release/macos/server ./server/main.go
zip "bin/macos.zip" bin/release/macos/*