mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-01 23:35:55 +00:00
Fail signed release builds if unstaged changes exist
This commit is contained in:
parent
f2fdd048c7
commit
1f7bdbfbcb
@ -11,6 +11,8 @@ if [ "$BUILD_CONFIG" != "Debug" ] && [ "$BUILD_CONFIG" != "Release" ]; then
|
|||||||
fail "Invalid build configuration"
|
fail "Invalid build configuration"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[ "$SIGNING_KEY" == "" ] || git diff-index --quiet HEAD -- || fail "Signed release builds must not have unstaged changes!"
|
||||||
|
|
||||||
BUILD_ROOT=$PWD/build
|
BUILD_ROOT=$PWD/build
|
||||||
SOURCE_ROOT=$PWD
|
SOURCE_ROOT=$PWD
|
||||||
BUILD_FOLDER=$BUILD_ROOT/build-$BUILD_CONFIG
|
BUILD_FOLDER=$BUILD_ROOT/build-$BUILD_CONFIG
|
||||||
|
@ -17,6 +17,13 @@ if /I "%BUILD_CONFIG%"=="debug" (
|
|||||||
set BUILD_CONFIG=release
|
set BUILD_CONFIG=release
|
||||||
set SIGN=1
|
set SIGN=1
|
||||||
set MUST_DEPLOY_SYMBOLS=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 (
|
) else (
|
||||||
echo Invalid build configuration
|
echo Invalid build configuration
|
||||||
exit /b 1
|
exit /b 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user