fix inno scripts

This commit is contained in:
Alex Bezdieniezhnykh
2025-07-03 13:09:11 +03:00
parent eac6460645
commit a68156a4d5
2 changed files with 4 additions and 20 deletions
+2 -8
View File
@@ -1,7 +1,7 @@
#define MyAppVersion GetFileVersion("..\dist-azaion\Azaion.Suite.exe") #define MyAppVersion GetFileVersion("..\dist-azaion\Azaion.Suite.exe")
#ifndef MY_BUILD_ENV #ifndef MY_BUILD_ENV
#define MY_BUILD_ENV "Stage" ; За замовчуванням Stage, якщо не вказано #define MY_BUILD_ENV "Stage" ; Stage by default
#endif #endif
[Setup] [Setup]
@@ -13,13 +13,7 @@ AppPublisher=Azaion LLC
DefaultDirName={localappdata}\Azaion\Azaion Suite DefaultDirName={localappdata}\Azaion\Azaion Suite
DefaultGroupName=Azaion Suite DefaultGroupName=Azaion Suite
OutputDir=..\ OutputDir=..\
OutputBaseFilename=AzaionSuite.Iterative.{#MY_BUILD_ENV}.{#MyAppVersion}
#if MY_BUILD_ENV == "Prod"
OutputBaseFilename=AzaionSuite.Full.Prod.{#MyAppVersion}
#else
OutputBaseFilename=AzaionSuite.Full.Stage.{#MyAppVersion} ; За замовчуванням Stage
#endif
SetupIconFile=..\dist-azaion\logo.ico SetupIconFile=..\dist-azaion\logo.ico
UninstallDisplayName=Azaion Suite UninstallDisplayName=Azaion Suite
UninstallDisplayIcon={app}\Azaion.Suite.exe UninstallDisplayIcon={app}\Azaion.Suite.exe
+2 -12
View File
@@ -1,10 +1,7 @@
#define MyAppVersion GetFileVersion("..\dist-azaion\Azaion.Suite.exe") #define MyAppVersion GetFileVersion("..\dist-azaion\Azaion.Suite.exe")
; Define a variable for the build environment, e.g., "Stage" or "Prod"
; This will be set by your Jenkins pipeline using the /D switch.
; If not defined via /D, it defaults to "Stage".
#ifndef MY_BUILD_ENV #ifndef MY_BUILD_ENV
#define MY_BUILD_ENV "Stage" ; Default to Stage if not specified (e.g., when compiling manually without /D) #define MY_BUILD_ENV "Stage" ; Stage by default
#endif #endif
[Setup] [Setup]
@@ -16,14 +13,7 @@ AppPublisher=Azaion LLC
DefaultDirName={localappdata}\Azaion\Azaion Suite DefaultDirName={localappdata}\Azaion\Azaion Suite
DefaultGroupName=Azaion Suite DefaultGroupName=Azaion Suite
OutputDir=..\ OutputDir=..\
OutputBaseFilename=AzaionSuite.Iterative.{#MY_BUILD_ENV}.{#MyAppVersion}
; Conditional OutputBaseFilename based on MY_BUILD_ENV
#if MY_BUILD_ENV == "Prod"
OutputBaseFilename=AzaionSuite.Iterative.Prod.{#MyAppVersion}
#else
OutputBaseFilename=AzaionSuite.Iterative.Stage.{#MyAppVersion} ; Defaults to Stage if MY_BUILD_ENV is not "Prod"
#endif
SetupIconFile=..\dist-azaion\logo.ico SetupIconFile=..\dist-azaion\logo.ico
UninstallDisplayName=Azaion Suite UninstallDisplayName=Azaion Suite
UninstallDisplayIcon={app}\Azaion.Suite.exe UninstallDisplayIcon={app}\Azaion.Suite.exe