mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2025-07-02 15:55:39 +00:00
Add a little help to the build scripts
This commit is contained in:
parent
ef2827a9d8
commit
7b6996ed80
@ -8,7 +8,7 @@ fail()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if [ "$BUILD_CONFIG" != "Debug" ] && [ "$BUILD_CONFIG" != "Release" ]; then
|
if [ "$BUILD_CONFIG" != "Debug" ] && [ "$BUILD_CONFIG" != "Release" ]; then
|
||||||
fail "Invalid build configuration"
|
fail "Invalid build configuration - expected 'Debug' or 'Release'"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$SIGNING_KEY" == "" ] || git diff-index --quiet HEAD -- || fail "Signed release builds must not have unstaged changes!"
|
[ "$SIGNING_KEY" == "" ] || git diff-index --quiet HEAD -- || fail "Signed release builds must not have unstaged changes!"
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
rem Run from Qt command prompt with working directory set to root of repo
|
|
||||||
|
|
||||||
setlocal enableDelayedExpansion
|
|
||||||
@echo off
|
@echo off
|
||||||
|
setlocal enableDelayedExpansion
|
||||||
|
|
||||||
|
rem Run from Qt command prompt with working directory set to root of repo
|
||||||
|
|
||||||
set BUILD_CONFIG=%1
|
set BUILD_CONFIG=%1
|
||||||
set ARCH=%2
|
set ARCH=%2
|
||||||
@ -25,7 +25,7 @@ if /I "%BUILD_CONFIG%"=="debug" (
|
|||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
) else (
|
) else (
|
||||||
echo Invalid build configuration
|
echo Invalid build configuration - expected 'debug' or 'release'
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -33,7 +33,7 @@ if /I "%BUILD_CONFIG%"=="debug" (
|
|||||||
|
|
||||||
if /I "%ARCH%" NEQ "x86" (
|
if /I "%ARCH%" NEQ "x86" (
|
||||||
if /I "%ARCH%" NEQ "x64" (
|
if /I "%ARCH%" NEQ "x64" (
|
||||||
echo Invalid build architecture
|
echo Invalid build architecture - expected 'x86' or 'x64'
|
||||||
exit /b 1
|
exit /b 1
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user