You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
595 B

:: 创建Windows发布版本 -ldflags "-s -w"
go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go
:: .\Tools\upx.exe -9 ./WinBuild/Distribute.exe
:: 创建Linux发布版本
SET GOOS=linux
SET GOARCH=amd64
go build -o ./build/SyncLogstashSetting ./Tools/SyncLogstashSetting.go
go build -o ./build/mysqlBackup ./Backup/mysqlBackup.go
go build -o ./build/esBackup ./Backup/esBackup.go
:: 压缩一下
:: .\Tools\upx.exe -9 ./build/SyncLogstashSetting
:: 拷贝资源文件
xcopy .\Config\* .\build\Config /y /e /i /q
xcopy .\Shell\* .\build\Shell /y /e /i /q
:: 上传文件
.\WinBuild\Distribute.exe
pause