From 7b6996ed80d46f8935e36811597e0ee4be7ccaee Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Tue, 13 Aug 2019 18:07:42 -0700 Subject: [PATCH] Add a little help to the build scripts --- scripts/generate-dmg.sh | 2 +- scripts/generate-installers.bat | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/generate-dmg.sh b/scripts/generate-dmg.sh index fde0dfe5..85cd78dd 100755 --- a/scripts/generate-dmg.sh +++ b/scripts/generate-dmg.sh @@ -8,7 +8,7 @@ fail() } if [ "$BUILD_CONFIG" != "Debug" ] && [ "$BUILD_CONFIG" != "Release" ]; then - fail "Invalid build configuration" + fail "Invalid build configuration - expected 'Debug' or 'Release'" fi [ "$SIGNING_KEY" == "" ] || git diff-index --quiet HEAD -- || fail "Signed release builds must not have unstaged changes!" diff --git a/scripts/generate-installers.bat b/scripts/generate-installers.bat index dadf8ade..7b59e4c6 100644 --- a/scripts/generate-installers.bat +++ b/scripts/generate-installers.bat @@ -1,7 +1,7 @@ -rem Run from Qt command prompt with working directory set to root of repo - -setlocal enableDelayedExpansion @echo off +setlocal enableDelayedExpansion + +rem Run from Qt command prompt with working directory set to root of repo set BUILD_CONFIG=%1 set ARCH=%2 @@ -25,7 +25,7 @@ if /I "%BUILD_CONFIG%"=="debug" ( exit /b 1 ) ) else ( - echo Invalid build configuration + echo Invalid build configuration - expected 'debug' or 'release' exit /b 1 ) ) @@ -33,7 +33,7 @@ if /I "%BUILD_CONFIG%"=="debug" ( if /I "%ARCH%" NEQ "x86" ( if /I "%ARCH%" NEQ "x64" ( - echo Invalid build architecture + echo Invalid build architecture - expected 'x86' or 'x64' exit /b 1 ) )