From 897ada43fcfeb0161c2b4cec4be5a69647c9d6d1 Mon Sep 17 00:00:00 2001 From: L4ZZA Date: Sun, 12 Jul 2020 17:50:58 +0100 Subject: [PATCH] Allowed no arguments with default "Release" config This is to let people still double click on the batch script to create the installer. --- scripts/create_installer.bat | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/create_installer.bat b/scripts/create_installer.bat index 393c213..a5258cd 100644 --- a/scripts/create_installer.bat +++ b/scripts/create_installer.bat @@ -5,12 +5,13 @@ @rem Prevent env variables to escape to the calling environment SETLOCAL -rem By Garret Wilson - SET CONFIG=%~1 +SET DEFAULT_CONFIG=Release IF "%CONFIG%" == "" ( - GOTO usage + SET CONFIG=%DEFAULT_CONFIG% + echo No Configuration passed. Defaulted to %CONFIG% + echo Usage: create_installer.bat ^ [-s] ) @rem redefine variables in case already defined in the calling environment