-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathbuild
executable file
·56 lines (46 loc) · 974 Bytes
/
build
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
#!/bin/bash
#MAC OS
export GOARCH="386"
export GOOS="darwin"
export CGO_ENABLED=1
go build -o mac_386 -v
export GOARCH="amd64"
export GOOS="darwin"
export CGO_ENABLED=1
go build -o mac_amd64 -v
#LINUX
export GOARCH="amd64"
export GOOS="linux"
export CGO_ENABLED=0
go build -o linux_amd64 -v
export GOARCH="386"
export GOOS="linux"
export CGO_ENABLED=0
go build -o linux_386 -v
#FREEBSD
export GOARCH="amd64"
export GOOS="freebsd"
export CGO_ENABLED=0
go build -o freebsd_amd64 -v
export GOARCH="386"
export GOOS="freebsd"
export CGO_ENABLED=1
go build -o freebsd_386 -v
#OPENBSD
export GOARCH="amd64"
export GOOS="openbsd"
export CGO_ENABLED=0
go build -o freebsd_amd64 -v
export GOARCH="386"
export GOOS="openbsd"
export CGO_ENABLED=0
go build -o freebsd_386 -v
#WINDOWS
export GOARCH="386"
export GOOS="windows"
export CGO_ENABLED=0
go build -o windows_386.exe -v
export GOARCH="amd64"
export GOOS="windows"
export CGO_ENABLED=0
go build -o windows_amd64.exe -v