You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
Batchfile
40 lines
1.1 KiB
Batchfile
mkdir bin
|
|
set GOOS=windows
|
|
set GOARCH=amd64
|
|
set CGO_ENABLED=0
|
|
go build -o .\bin\b612_x86_64.exe -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_x86_64.exe
|
|
set GOARCH=386
|
|
go build -o .\bin\b612_x86.exe -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_x86.exe
|
|
set GOARCH=arm64
|
|
go build -o .\bin\b612_aarch64.exe -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_aarch64.exe
|
|
set GOOS=linux
|
|
set GOARCH=amd64
|
|
go build -o .\bin\b612_x86_64 -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_x86_64
|
|
set GOARCH=386
|
|
go build -o .\bin\b612_x86 -ldflags "-w -s" .
|
|
#upx -9 .\bin\b612_x86
|
|
set GOARCH=arm64
|
|
go build -o .\bin\b612_aarch64 -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_aarch64
|
|
set GOARCH=mips
|
|
go build -o .\bin\b612_mips -ldflags "-w -s" .
|
|
set GOARCH=mipsle
|
|
go build -o .\bin\b612_mipsle -ldflags "-w -s" .
|
|
set GOARCH=mips64
|
|
go build -o .\bin\b612_mips64 -ldflags "-w -s" .
|
|
set GOARCH=mips64le
|
|
go build -o .\bin\b612_mips64le -ldflags "-w -s" .
|
|
set GOOS=darwin
|
|
set GOARCH=amd64
|
|
go build -o .\bin\b612_darwin_x64 -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_darwin_x64
|
|
set GOARCH=arm64
|
|
go build -o .\bin\b612_darwin_aarch64 -ldflags "-w -s" .
|
|
upx -9 .\bin\b612_darwin_aarch64
|
|
|
|
|