|
|
@ -1,13 +1,5 @@
|
|
|
|
:: 创建Windows发布版本 -ldflags "-s -w"
|
|
|
|
:: 创建Windows发布版本 -ldflags "-s -w"
|
|
|
|
go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go
|
|
|
|
go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go
|
|
|
|
go build -o ./WinBuild/XltraSwag.exe ./Tools/XltraSwag.go
|
|
|
|
|
|
|
|
go build -o ./WinBuild/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:: 替换swagger ip为远程ip
|
|
|
|
|
|
|
|
.\WinBuild\ReplaceSwaggerIp.exe -action remote
|
|
|
|
|
|
|
|
.\WinBuild\XltraSwag.exe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
:: 创建Linux发布版本
|
|
|
|
:: 创建Linux发布版本
|
|
|
|
SET GOOS=linux
|
|
|
|
SET GOOS=linux
|
|
|
@ -17,15 +9,10 @@ go build -o ./build/dsBigData main.go
|
|
|
|
|
|
|
|
|
|
|
|
:: 拷贝资源文件
|
|
|
|
:: 拷贝资源文件
|
|
|
|
xcopy .\Shell\* .\build\ /y /e /i /q
|
|
|
|
xcopy .\Shell\* .\build\ /y /e /i /q
|
|
|
|
xcopy .\docs\* .\build\docs /y /e /i /q
|
|
|
|
|
|
|
|
xcopy .\Config\* .\build\Config /y /e /i /q
|
|
|
|
xcopy .\Config\* .\build\Config /y /e /i /q
|
|
|
|
xcopy .\Xml\* .\build\Xml /y /e /i /q
|
|
|
|
xcopy .\Xml\* .\build\Xml /y /e /i /q
|
|
|
|
|
|
|
|
|
|
|
|
:: 上传文件
|
|
|
|
:: 上传文件
|
|
|
|
.\WinBuild\Distribute.exe
|
|
|
|
.\WinBuild\Distribute.exe
|
|
|
|
|
|
|
|
|
|
|
|
:: 替换swagger ip为本机ip
|
|
|
|
|
|
|
|
.\WinBuild\ReplaceSwaggerIp.exe -action localhost
|
|
|
|
|
|
|
|
.\WinBuild\XltraSwag.exe
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pause
|
|
|
|
pause
|