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.
star/build.bat

40 lines
1.1 KiB
Batchfile

2 years ago
mkdir bin
set GOOS=windows
set GOARCH=amd64
8 months ago
set CGO_ENABLED=0
2 years ago
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
2 years ago
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" .
8 months ago
#upx -9 .\bin\b612_x86
2 years ago
set GOARCH=arm64
go build -o .\bin\b612_aarch64 -ldflags "-w -s" .
upx -9 .\bin\b612_aarch64
2 years ago
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
2 years ago