From 212a7a78f2479498d7f1bbde3152ebd48701c9fe Mon Sep 17 00:00:00 2001 From: huanghai <10402852@qq.com> Date: Wed, 8 Jul 2020 17:33:55 +0800 Subject: [PATCH] 'commit' --- dsSso/Shell/debug.sh | 3 +- dsSso/Shell/start.sh | 1 + dsSso/Shell/stop.sh | 2 - dsSso/docs/docs.go | 3 +- dsSso/{构建Linux.cmd => 一键发布.cmd} | 62 ++++++++++----------- 5 files changed, 34 insertions(+), 37 deletions(-) rename dsSso/{构建Linux.cmd => 一键发布.cmd} (95%) diff --git a/dsSso/Shell/debug.sh b/dsSso/Shell/debug.sh index aa55996e..f4caaa07 100644 --- a/dsSso/Shell/debug.sh +++ b/dsSso/Shell/debug.sh @@ -6,5 +6,4 @@ chmod +x *.sh # 运行为前台进程 -/usr/local/dsMin/dsSso/dsSso - +/usr/local/dsMin/dsSso/dsSso \ No newline at end of file diff --git a/dsSso/Shell/start.sh b/dsSso/Shell/start.sh index 8c5ec736..543551a4 100644 --- a/dsSso/Shell/start.sh +++ b/dsSso/Shell/start.sh @@ -7,3 +7,4 @@ chmod +x *.sh # 运行为后台进程 nohup /usr/local/dsMin/dsSso/dsSso >> /usr/local/dsSso.out 2>&1 & + diff --git a/dsSso/Shell/stop.sh b/dsSso/Shell/stop.sh index fe803054..557de070 100644 --- a/dsSso/Shell/stop.sh +++ b/dsSso/Shell/stop.sh @@ -1,6 +1,4 @@ #!/bin/bash - # kill 命令不使用 -9 参数时,会回调 onStop() 方法,确定不需要此回调建议使用 -9 参数 kill -9 `pgrep -f dsSso` 2>/dev/null - diff --git a/dsSso/docs/docs.go b/dsSso/docs/docs.go index 42d2acbd..42e7c632 100644 --- a/dsSso/docs/docs.go +++ b/dsSso/docs/docs.go @@ -1,6 +1,5 @@ // GENERATED BY THE COMMAND ABOVE; DO NOT EDIT -// This file was generated by swaggo/swag at -// 2020-05-29 14:15:13.4165664 +0800 CST m=+0.077789301 +// This file was generated by swaggo/swag package docs diff --git a/dsSso/构建Linux.cmd b/dsSso/一键发布.cmd similarity index 95% rename from dsSso/构建Linux.cmd rename to dsSso/一键发布.cmd index d16c0257..600d31e1 100644 --- a/dsSso/构建Linux.cmd +++ b/dsSso/一键发布.cmd @@ -1,32 +1,32 @@ -:: Windows汾 -ldflags "-s -w" -go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go -go build -o ./WinBuild/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go - -::.\Tools\upx.exe -9 ./WinBuild/Distribute.exe -:: 滻swagger ipΪԶip -.\WinBuild\ReplaceSwaggerIp.exe -action remote -swag init - - -:: Linux汾 -SET GOOS=linux -SET GOARCH=amd64 -go build -gcflags "all=-N -l" -o ./build/dsSso main.go - -:: ѹһ -::.\Tools\upx.exe -9 ./build/dsSso - - -:: Դļ -xcopy .\Shell\* .\build\ /y /e /i /q -xcopy .\docs\* .\build\docs /y /e /i /q -xcopy .\Config\* .\build\Config /y /e /i /q -xcopy .\Xml\* .\build\Xml /y /e /i /q - -:: ϴļ -.\WinBuild\Distribute.exe - -:: 滻swagger ipΪip -.\WinBuild\ReplaceSwaggerIp.exe -action localhost -swag init +:: Windows汾 -ldflags "-s -w" +go build -o ./WinBuild/Distribute.exe ./Tools/Distribute.go +go build -o ./WinBuild/ReplaceSwaggerIp.exe ./Tools/ReplaceSwaggerIp.go + +::.\Tools\upx.exe -9 ./WinBuild/Distribute.exe +:: 滻swagger ipΪԶip +.\WinBuild\ReplaceSwaggerIp.exe -action remote +swag init + + +:: Linux汾 +SET GOOS=linux +SET GOARCH=amd64 +go build -gcflags "all=-N -l" -o ./build/dsSso main.go + +:: ѹһ +::.\Tools\upx.exe -9 ./build/dsSso + + +:: Դļ +xcopy .\Shell\* .\build\ /y /e /i /q +xcopy .\docs\* .\build\docs /y /e /i /q +xcopy .\Config\* .\build\Config /y /e /i /q +xcopy .\Xml\* .\build\Xml /y /e /i /q + +:: ϴļ +.\WinBuild\Distribute.exe + +:: 滻swagger ipΪip +.\WinBuild\ReplaceSwaggerIp.exe -action localhost +swag init pause \ No newline at end of file