Files
houston/make_houston_package.ps1
mklee 965d6fa5b9 [1.2] 인프라
- houston.sh 리눅스 줄바꿈으로 변경
- make_houston_package.ps1이 houston.sh도 포함하도록 변경
2025-06-09 12:08:29 +09:00

32 lines
734 B
PowerShell

# $ErrorActionPreference = 'SilentlyContinue'
del houston.zip
$Env:GOOS="linux"
$Env:GOARCH="amd64"
# 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" .
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 ..