-
Notifications
You must be signed in to change notification settings - Fork 53
/
Copy pathbuild.bat
38 lines (38 loc) · 1003 Bytes
/
build.bat
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
rd /s /q build
mkdir build
SET CGO_ENABLED=1
SET GOARCH=amd64
SET GOOS=windows
go build -ldflags="-w -s"
move tcp2ws.exe build\tcp2ws.exe
SET GOARCH=386
go build -ldflags="-w -s"
move tcp2ws.exe build\tcp2ws-i386.exe
SET CGO_ENABLED=0
SET GOOS=linux
go build -ldflags="-w -s"
move tcp2ws build\tcp2ws-linux-i386
SET GOARCH=amd64
go build -ldflags="-w -s"
7z\7z a tcp2ws-linux.zip tcp2ws
copy /b kazari.png+tcp2ws-linux.zip build\tcp2ws-zip-linux.png
del tcp2ws-linux.zip
move tcp2ws build\tcp2ws-linux
SET GOARCH=arm
go build -ldflags="-w -s"
move tcp2ws build\tcp2ws-linux-arm
SET GOARCH=mips
go build -ldflags="-w -s"
move tcp2ws build\tcp2ws-linux-mips
SET GOARCH=arm64
go build -ldflags="-w -s"
move tcp2ws build\tcp2ws-linux-arm64
SET GOOS=darwin
go build -ldflags="-w -s"
move tcp2ws build\tcp2ws-darwin-arm64
SET GOARCH=amd64
go build -ldflags="-w -s"
move tcp2ws build\tcp2ws-darwin
SET GOOS=freebsd
go build -ldflags="-w -s"
move tcp2ws build/tcp2ws-freebsd