Przeglądaj źródła

Added optional script parameters

Added optional script parameters to set AppVer, AppBuild, AppArch, AppDir.

build_installer.cmd 1.6.4 15d45d15 x86 "VCMI (branch beta)"

AppDir is VCMI / VCMI (Branch beta) /  VCMI (Branch develop) for example. It's used accross installer, so future beta upgrades goes to VCMI (Branch beta) install folder etc.
George King 9 miesięcy temu
rodzic
commit
f8bebe6f21
1 zmienionych plików z 6 dodań i 0 usunięć
  1. 6 0
      CI/wininstaller/build_installer.cmd

+ 6 - 0
CI/wininstaller/build_installer.cmd

@@ -9,6 +9,12 @@ set "AppBuild=1122334455A"
 set "InstallerArch=x64"
 set "VCMIFolder=VCMI"
 
+REM Override defaults with optional parameters
+if not "%~1"=="" set "AppVersion=%~1"
+if not "%~2"=="" set "AppBuild=%~2"
+if not "%~3"=="" set "InstallerArch=%~3"
+if not "%~4"=="" set "VCMIFolder=%~4"
+
 REM Define Inno Setup version
 set InnoSetupVer=6