배포용 패키지 제작 스크립트
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user