parent
1eb665ac8f
commit
212a7a78f2
@ -1,32 +1,32 @@
|
|||||||
:: 创建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/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go
|
go build -o ./WinBuild/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go
|
||||||
|
|
||||||
::.\Tools\upx.exe -9 ./WinBuild/Distribute.exe
|
::.\Tools\upx.exe -9 ./WinBuild/Distribute.exe
|
||||||
:: 替换swagger ip为远程ip
|
:: 替换swagger ip为远程ip
|
||||||
.\WinBuild\ReplaceSwaggerIp.exe -action remote
|
.\WinBuild\ReplaceSwaggerIp.exe -action remote
|
||||||
swag init
|
swag init
|
||||||
|
|
||||||
|
|
||||||
:: 创建Linux发布版本
|
:: 创建Linux发布版本
|
||||||
SET GOOS=linux
|
SET GOOS=linux
|
||||||
SET GOARCH=amd64
|
SET GOARCH=amd64
|
||||||
go build -gcflags "all=-N -l" -o ./build/dsSso main.go
|
go build -gcflags "all=-N -l" -o ./build/dsSso main.go
|
||||||
|
|
||||||
:: 压缩一下
|
:: 压缩一下
|
||||||
::.\Tools\upx.exe -9 ./build/dsSso
|
::.\Tools\upx.exe -9 ./build/dsSso
|
||||||
|
|
||||||
|
|
||||||
:: 拷贝资源文件
|
:: 拷贝资源文件
|
||||||
xcopy .\Shell\* .\build\ /y /e /i /q
|
xcopy .\Shell\* .\build\ /y /e /i /q
|
||||||
xcopy .\docs\* .\build\docs /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
|
:: 替换swagger ip为本机ip
|
||||||
.\WinBuild\ReplaceSwaggerIp.exe -action localhost
|
.\WinBuild\ReplaceSwaggerIp.exe -action localhost
|
||||||
swag init
|
swag init
|
||||||
pause
|
pause
|
Loading…
Reference in new issue