houston package 생성 스크립트 추가

This commit is contained in:
2023-06-13 20:13:03 +09:00
parent ed5b4c06e9
commit 93c13ba92f

24
make_houston_package.ps1 Normal file
View File

@ -0,0 +1,24 @@
# $ErrorActionPreference = 'SilentlyContinue'
del houston.zip
$Env:GOOS="linux"
$Env:GOARCH="amd64"
go build -ldflags="-s -w" .
cp houston .\replacer\houston
cp config.json .\replacer\config.json
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
del houston
del config.json
del replacer
mv houston.zip ..\houston.zip
cd ..