alpha v0.0971

This commit is contained in:
2026-08-11 12:54:09 +03:00
parent 708e6800fa
commit 87c814ac19
8 changed files with 1154 additions and 31 deletions

View File

@@ -11,13 +11,17 @@ set "INSTALLER_SCRIPT=Inventera.iss"
set "INSTALLER_OUTPUT=dist\Inventera.exe"
set "POSTGRES_INSTALLER=installer\prerequisites\postgresql.exe"
set "BUILD_SERVICE=0"
set "APP_VERSION=%~1"
if /I "%~1"=="cartridge" (
set "INSTALLER_SCRIPT=Inventera.Cartridge.iss"
set "INSTALLER_OUTPUT=dist\Inventera-Cartridge.exe"
set "BUILD_SERVICE=1"
set "APP_VERSION=%~2"
)
if not defined APP_VERSION set "APP_VERSION=0.1.0-beta"
if "%BUILD_SERVICE%"=="1" (
if not exist "%SERVICE_SPEC%" (
echo Missing Windows service spec: %SERVICE_SPEC%
@@ -95,8 +99,8 @@ if not defined ISCC_EXE (
goto :fail
)
echo Building Inventera installer...
"%ISCC_EXE%" "%INSTALLER_SCRIPT%"
echo Building Inventera installer version %APP_VERSION%...
"%ISCC_EXE%" "/DMyAppVersion=%APP_VERSION%" "%INSTALLER_SCRIPT%"
if errorlevel 1 (
echo Installer build failed.
goto :fail