배포용 패키지 제작 스크립트

This commit is contained in:
2023-06-21 17:14:10 +09:00
parent 562da693f1
commit 879d4b7092

View File

@ -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