From 879d4b70921d225e99c0cc636b4e2605a4ff7450 Mon Sep 17 00:00:00 2001 From: mountain Date: Wed, 21 Jun 2023 17:14:10 +0900 Subject: [PATCH] =?UTF-8?q?=EB=B0=B0=ED=8F=AC=EC=9A=A9=20=ED=8C=A8?= =?UTF-8?q?=ED=82=A4=EC=A7=80=20=EC=A0=9C=EC=9E=91=20=EC=8A=A4=ED=81=AC?= =?UTF-8?q?=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 | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/make_maingate_package.ps1 b/make_maingate_package.ps1 index 327a9b1..3598c70 100644 --- a/make_maingate_package.ps1 +++ b/make_maingate_package.ps1 @@ -1,11 +1,16 @@ # $ErrorActionPreference = 'SilentlyContinue' -del maingate.zip +$CurBranch = git branch --show-current + +Remove-Item maingate.zip -Force -Recurse -ErrorAction SilentlyContinue cd .. cd maingate-console -Copy-Item .env.example.prod .env + +git switch $CurBranch +git pull +npm install npm run build Remove-Item console -Force -Recurse -ErrorAction SilentlyContinue @@ -23,5 +28,4 @@ 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