1
+ export GOPROXY=direct
2
+
3
+ sudo apt-get update
4
+ sudo apt-get install gcc-mingw-w64-i686 gcc-multilib
5
+ env GOOS=windows GOARCH=386 CGO_ENABLED=1 CC=i686-w64-mingw32-gcc go build -ldflags " -s -w -extldflags -static -extldflags -static" -buildmode=c-shared -o npc_sdk.dll cmd/npc/sdk.go
6
+ env GOOS=linux GOARCH=386 CGO_ENABLED=1 CC=gcc go build -ldflags " -s -w -extldflags -static -extldflags -static" -buildmode=c-shared -o npc_sdk.so cmd/npc/sdk.go
7
+ tar -czvf npc_sdk.tar.gz npc_sdk.dll npc_sdk.so npc_sdk.h
8
+
9
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
10
+
11
+ tar -czvf linux_amd64_client.tar.gz npc conf/npc.conf conf/multi_account.conf
12
+
13
+ CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
14
+
15
+ tar -czvf linux_386_client.tar.gz npc conf/npc.conf conf/multi_account.conf
16
+
17
+ CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
18
+
19
+ tar -czvf freebsd_386_client.tar.gz npc conf/npc.conf conf/multi_account.conf
20
+
21
+ CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
22
+
23
+ tar -czvf freebsd_amd64_client.tar.gz npc conf/npc.conf conf/multi_account.conf
24
+
25
+ CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
26
+
27
+ tar -czvf freebsd_arm_client.tar.gz npc conf/npc.conf conf/multi_account.conf
28
+
29
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
30
+
31
+ tar -czvf linux_arm_v7_client.tar.gz npc conf/npc.conf conf/multi_account.conf
32
+
33
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
34
+
35
+ tar -czvf linux_arm_v6_client.tar.gz npc conf/npc.conf conf/multi_account.conf
36
+
37
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
38
+
39
+ tar -czvf linux_arm_v5_client.tar.gz npc conf/npc.conf conf/multi_account.conf
40
+
41
+
42
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
43
+
44
+ tar -czvf linux_arm64_client.tar.gz npc conf/npc.conf conf/multi_account.conf
45
+
46
+
47
+ CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
48
+
49
+ tar -czvf linux_mips64_client.tar.gz npc conf/npc.conf conf/multi_account.conf
50
+
51
+
52
+ CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
53
+
54
+ tar -czvf linux_mips64le_client.tar.gz npc conf/npc.conf conf/multi_account.conf
55
+
56
+
57
+ CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
58
+
59
+ tar -czvf linux_mipsle_client.tar.gz npc conf/npc.conf conf/multi_account.conf
60
+
61
+
62
+ CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
63
+
64
+ tar -czvf linux_mips_client.tar.gz npc conf/npc.conf conf/multi_account.conf
65
+
66
+
67
+ CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
68
+
69
+ tar -czvf windows_386_client.tar.gz npc.exe conf/npc.conf conf/multi_account.conf
70
+
71
+
72
+ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
73
+
74
+ tar -czvf windows_amd64_client.tar.gz npc.exe conf/npc.conf conf/multi_account.conf
75
+
76
+
77
+ CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/npc/npc.go
78
+
79
+ tar -czvf darwin_amd64_client.tar.gz npc conf/npc.conf conf/multi_account.conf
80
+
81
+ CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
82
+
83
+ tar -czvf linux_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
84
+
85
+ CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
86
+
87
+ tar -czvf linux_386_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
88
+
89
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=5 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
90
+
91
+ tar -czvf linux_arm_v5_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
92
+
93
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=6 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
94
+
95
+ tar -czvf linux_arm_v6_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
96
+
97
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm GOARM=7 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
98
+
99
+ tar -czvf linux_arm_v7_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
100
+
101
+
102
+ CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
103
+
104
+ tar -czvf linux_arm64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
105
+
106
+
107
+ CGO_ENABLED=0 GOOS=freebsd GOARCH=arm go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
108
+
109
+ tar -czvf freebsd_arm_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
110
+
111
+
112
+ CGO_ENABLED=0 GOOS=freebsd GOARCH=386 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
113
+
114
+ tar -czvf freebsd_386_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
115
+
116
+
117
+ CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
118
+
119
+ tar -czvf freebsd_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
120
+
121
+
122
+
123
+ CGO_ENABLED=0 GOOS=linux GOARCH=mips go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
124
+
125
+ tar -czvf linux_mips_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
126
+
127
+
128
+ CGO_ENABLED=0 GOOS=linux GOARCH=mips64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
129
+
130
+ tar -czvf linux_mips64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
131
+
132
+
133
+ CGO_ENABLED=0 GOOS=linux GOARCH=mips64le go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
134
+
135
+ tar -czvf linux_mips64le_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
136
+
137
+
138
+ CGO_ENABLED=0 GOOS=linux GOARCH=mipsle go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
139
+
140
+ tar -czvf linux_mipsle_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
141
+
142
+
143
+
144
+ CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
145
+
146
+ tar -czvf darwin_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps
147
+
148
+
149
+ CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
150
+
151
+ tar -czvf windows_amd64_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps.exe
152
+
153
+
154
+ CGO_ENABLED=0 GOOS=windows GOARCH=386 go build -ldflags " -s -w -extldflags -static -extldflags -static" ./cmd/nps/nps.go
155
+
156
+ tar -czvf windows_386_server.tar.gz conf/nps.conf conf/tasks.json conf/clients.json conf/hosts.json conf/server.key conf/server.pem web/views web/static nps.exe
0 commit comments