diff --git a/houston.sh b/houston.sh index 09fc9ef..4de668b 100644 --- a/houston.sh +++ b/houston.sh @@ -1,4 +1,4 @@ #!/bin/sh -nohup /home/opdev/houston -client -logfile > /dev/null & +nohup ./houston -client -logfile > /dev/null & diff --git a/make_houston_package.ps1 b/make_houston_package.ps1 index 05f6568..808262f 100644 --- a/make_houston_package.ps1 +++ b/make_houston_package.ps1 @@ -5,13 +5,14 @@ del houston.zip $Env:GOOS="linux" $Env:GOARCH="amd64" -go get repositories.action2quare.com/ayo/gocommon -go mod tidy +# go get repositories.action2quare.com/ayo/gocommon +# go mod tidy go build -ldflags="-s -w" -tags=client . cp houston .\replacer\houston cp config.json .\replacer\config.json +cp houston.sh .\replacer\houston.sh cd replacer go build -ldflags="-s -w" . @@ -19,10 +20,12 @@ go build -ldflags="-s -w" . Compress-Archive -Path replacer -DestinationPath houston.zip -Force Compress-Archive -Path config.json -Update -DestinationPath houston.zip Compress-Archive -Path houston -Update -DestinationPath houston.zip +Compress-Archive -Path houston.sh -Update -DestinationPath houston.zip del houston del config.json del replacer +del houston.sh mv houston.zip ..\houston.zip cd ..