Fail signed release builds if unstaged changes exist
This commit is contained in:
parent
f2fdd048c7
commit
1f7bdbfbcb
2 changed files with 9 additions and 0 deletions
|
|
@ -17,6 +17,13 @@ if /I "%BUILD_CONFIG%"=="debug" (
|
|||
set BUILD_CONFIG=release
|
||||
set SIGN=1
|
||||
set MUST_DEPLOY_SYMBOLS=1
|
||||
|
||||
rem Fail if there are unstaged changes
|
||||
git diff-index --quiet HEAD --
|
||||
if !ERRORLEVEL! NEQ 0 (
|
||||
echo Signed release builds must not have unstaged changes!
|
||||
exit /b 1
|
||||
)
|
||||
) else (
|
||||
echo Invalid build configuration
|
||||
exit /b 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue