ensure git master branch while releasing

This commit is contained in:
adityapk 2018-10-26 15:21:30 -07:00
parent b6e826edaf
commit f5615d44e3
1 changed files with 8 additions and 0 deletions

View File

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