mirror of
https://gitee.com/samwaf/SamWaf.git
synced 2025-12-06 06:58:54 +08:00
6 lines
317 B
Batchfile
6 lines
317 B
Batchfile
SET CGO_ENABLED=1
|
|
SET GOOS=windows
|
|
SET GOARCH=amd64
|
|
SET GIN_MODE=release
|
|
go build -ldflags="-X SamWaf/global.GWAF_RELEASE=true -X SamWaf/global.GWAF_RELEASE_VERSION_NAME=20230525 -X SamWaf/global.GWAF_RELEASE_VERSION=100 -s -w" -o %cd%/release/SamWaf64.exe main.go && %cd%/upx/win64/upx -9 %cd%/release/SamWaf64.exe
|