From f5615d44e37879875b89671f17fd0e527203bbdc Mon Sep 17 00:00:00 2001 From: adityapk Date: Fri, 26 Oct 2018 15:21:30 -0700 Subject: [PATCH] ensure git master branch while releasing --- src/scripts/mkwinrelease.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/scripts/mkwinrelease.ps1 b/src/scripts/mkwinrelease.ps1 index 8614a50..2cc2c39 100644 --- a/src/scripts/mkwinrelease.ps1 +++ b/src/scripts/mkwinrelease.ps1 @@ -3,6 +3,14 @@ if (-not (Test-Path env:APP_VERSION)) { echo "APP_VERSION is not set. Please set $target="zec-qt-wallet-v$Env:APP_VERSION" +echo "Git Status" +$branch= &git branch +if ($branch -ne "* master") { + echo "Not on master branch!" + exit; +} +git pull + echo "Cleaning" nmake clean *>$null Remove-Item -Path debug -Recurse | Out-Null