From 93c13ba92fd6e5830e3be7c041f5c042583d8c53 Mon Sep 17 00:00:00 2001 From: mountain Date: Tue, 13 Jun 2023 20:13:03 +0900 Subject: [PATCH] =?UTF-8?q?houston=20package=20=EC=83=9D=EC=84=B1=20?= =?UTF-8?q?=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make_houston_package.ps1 | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 make_houston_package.ps1 diff --git a/make_houston_package.ps1 b/make_houston_package.ps1 new file mode 100644 index 0000000..07d73e4 --- /dev/null +++ b/make_houston_package.ps1 @@ -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 ..