From 0ea219c72123d6fc88fbad144dee55be50ff0bab Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 14 Jun 2023 01:51:19 +0900 Subject: [PATCH] =?UTF-8?q?maingate=20=ED=8C=A8=ED=82=A4=EC=A7=80=20?= =?UTF-8?q?=EC=A0=9C=EC=9E=91=20=EC=8A=A4=ED=81=AC=EB=A6=BD=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- make_maingate_package.ps1 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 make_maingate_package.ps1 diff --git a/make_maingate_package.ps1 b/make_maingate_package.ps1 new file mode 100644 index 0000000..1a89ec0 --- /dev/null +++ b/make_maingate_package.ps1 @@ -0,0 +1,30 @@ +# $ErrorActionPreference = 'SilentlyContinue' + +del maingate.zip + +cd .. +cd maingate-console + +mv .env .env.old +cp .env.production .env +npm run build +del .env +mv .env.old .env + +Remove-Item console -Force -Recurse -ErrorAction SilentlyContinue +Copy-Item build console -Recurse + +Compress-Archive -Path console -DestinationPath ..\maingate\maingate.zip -Force +Remove-Item console -Force -Recurse + +cd .. +cd maingate + +$Env:GOOS="linux" +$Env:GOARCH="amd64" +go build -ldflags="-s -w" . + +Compress-Archive -Path config.json -Update -DestinationPath maingate.zip +Compress-Archive -Path maingate -Update -DestinationPath maingate.zip +Compress-Archive -Path www -Update -DestinationPath maingate.zip +Compress-Archive -Path *-firebase-*.json -Update -DestinationPath maingate.zip