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.
19 lines
444 B
19 lines
444 B
:: 创建Windows发布版本 -ldflags "-s -w"
|
|
go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go
|
|
|
|
:: 创建Linux发布版本
|
|
SET GOOS=linux
|
|
SET GOARCH=amd64
|
|
go build -gcflags "all=-N -l" -o ./build/dsSzxy main.go
|
|
|
|
|
|
:: 拷贝资源文件
|
|
xcopy .\Shell\* .\build\ /y /e /i /q
|
|
xcopy .\static\* .\build\static /y /e /i /q
|
|
xcopy .\Config\* .\build\Config /y /e /i /q
|
|
xcopy .\fonts\* .\build\fonts /y /e /i /q
|
|
|
|
:: 上传文件
|
|
.\WinBuild\Distribute.exe
|
|
|
|
pause |