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