[1.2] 인프라
- houston.sh 리눅스 줄바꿈으로 변경 - make_houston_package.ps1이 houston.sh도 포함하도록 변경
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
nohup /home/opdev/houston -client -logfile > /dev/null &
|
nohup ./houston -client -logfile > /dev/null &
|
||||||
|
|
||||||
|
|||||||
@ -5,13 +5,14 @@ del houston.zip
|
|||||||
$Env:GOOS="linux"
|
$Env:GOOS="linux"
|
||||||
$Env:GOARCH="amd64"
|
$Env:GOARCH="amd64"
|
||||||
|
|
||||||
go get repositories.action2quare.com/ayo/gocommon
|
# go get repositories.action2quare.com/ayo/gocommon
|
||||||
go mod tidy
|
# go mod tidy
|
||||||
|
|
||||||
go build -ldflags="-s -w" -tags=client .
|
go build -ldflags="-s -w" -tags=client .
|
||||||
|
|
||||||
cp houston .\replacer\houston
|
cp houston .\replacer\houston
|
||||||
cp config.json .\replacer\config.json
|
cp config.json .\replacer\config.json
|
||||||
|
cp houston.sh .\replacer\houston.sh
|
||||||
|
|
||||||
cd replacer
|
cd replacer
|
||||||
go build -ldflags="-s -w" .
|
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 replacer -DestinationPath houston.zip -Force
|
||||||
Compress-Archive -Path config.json -Update -DestinationPath houston.zip
|
Compress-Archive -Path config.json -Update -DestinationPath houston.zip
|
||||||
Compress-Archive -Path houston -Update -DestinationPath houston.zip
|
Compress-Archive -Path houston -Update -DestinationPath houston.zip
|
||||||
|
Compress-Archive -Path houston.sh -Update -DestinationPath houston.zip
|
||||||
|
|
||||||
del houston
|
del houston
|
||||||
del config.json
|
del config.json
|
||||||
del replacer
|
del replacer
|
||||||
|
del houston.sh
|
||||||
|
|
||||||
mv houston.zip ..\houston.zip
|
mv houston.zip ..\houston.zip
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
Reference in New Issue
Block a user