Issue #5146: Change Installer ProductInfo in revisions

This allows better versioning control by ITs.
This commit is contained in:
Bruno 2024-06-05 16:15:09 -03:00
parent fb5474ae4d
commit a8b9bedf3c
No known key found for this signature in database
2 changed files with 34 additions and 20 deletions

View file

@ -2,6 +2,7 @@
# Parameters
param ($GIMP_VERSION,
$REVISION,
$GIMP_APP_VERSION,
$GIMP_API_VERSION,
$GIMP_BASE = '..\..\..\',
@ -20,6 +21,11 @@ if (-Not $GIMP_VERSION)
Foreach-Object {$_ -replace '#define GIMP_VERSION "',''} | Foreach-Object {$_ -replace '"',''}
}
if (-Not $REVISION)
{
$REVISION = "0"
}
if (-Not $GIMP_APP_VERSION)
{
$GIMP_APP_VERSION = Get-Content -Path "$CONFIG_PATH" | Select-String 'GIMP_APP_VERSION "' |
@ -114,7 +120,7 @@ if (Test-Path -Path $gen_path)
# Construct now the installer
Set-Location build/windows/installer
Set-Alias -Name 'iscc' -Value "${INNOPATH}\iscc.exe"
iscc -DGIMP_VERSION="$GIMP_VERSION" -DGIMP_APP_VERSION="$GIMP_APP_VERSION" -DGIMP_API_VERSION="$GIMP_API_VERSION" -DGIMP_DIR="$GIMP_BASE" -DDIR32="$GIMP32" -DDIR64="$GIMP64" -DDIRA64="$GIMPA64" -DDEPS_DIR="$GIMP_BASE" -DDDIR32="$GIMP32" -DDDIR64="$GIMP64" -DDDIRA64="$GIMPA64" -DDEBUG_SYMBOLS -DLUA -DPYTHON base_gimp3264.iss
iscc -DGIMP_VERSION="$GIMP_VERSION" -DREVISION="$REVISION" -DGIMP_APP_VERSION="$GIMP_APP_VERSION" -DGIMP_API_VERSION="$GIMP_API_VERSION" -DGIMP_DIR="$GIMP_BASE" -DDIR32="$GIMP32" -DDIR64="$GIMP64" -DDIRA64="$GIMPA64" -DDEPS_DIR="$GIMP_BASE" -DDDIR32="$GIMP32" -DDDIR64="$GIMP64" -DDDIRA64="$GIMPA64" -DDEBUG_SYMBOLS -DLUA -DPYTHON base_gimp3264.iss
# Test if the installer was created and return success/failure.
if (Test-Path -Path "_Output/gimp-${GIMP_VERSION}-setup.exe" -PathType Leaf)

View file

@ -113,31 +113,38 @@ NotRecognizedMessagesWarning=no
;INSTALLER AND APP INFO
AppName=GIMP
#if Defined(GIMP_UNSTABLE) && GIMP_UNSTABLE != ""
DefaultDirName={autopf}\GIMP {#GIMP_APP_VERSION}
#else
DefaultDirName={autopf}\GIMP {#MAJOR}
#endif
#if !defined(REVISION)
AppVerName=GIMP {#GIMP_VERSION}
#else
AppVerName=GIMP {#GIMP_VERSION}-{#REVISION}
#endif
VersionInfoVersion={#GIMP_VERSION}
AppVersion={#GIMP_VERSION}
#if Defined(GIMP_UNSTABLE) && GIMP_UNSTABLE != ""
;SetupMutex avoids two installers running at the same time but the
;UX is ultra clunky: https://github.com/jrsoftware/issrc/pull/461
;Inno installer identifier: https://github.com/jrsoftware/issrc/pull/461
SetupMutex=GIMP-{#GIMP_APP_VERSION}
;Inno installer (default) install location
DefaultDirName={autopf}\GIMP {#GIMP_APP_VERSION}
;Inno uninstaller identifier
AppID=GIMP-{#GIMP_APP_VERSION}
#else
SetupMutex=GIMP-{#MAJOR}
DefaultDirName={autopf}\GIMP {#MAJOR}
AppID=GIMP-{#MAJOR}
#endif
#if !defined(REVISION) || REVISION == "0"
;Inno installer file version
VersionInfoVersion={#GIMP_VERSION}
;Inno installer product version and ImmersiveControlPanel 'DisplayVersion'
AppVersion={#GIMP_VERSION}.0
;ImmersiveControlPanel 'DisplayName'
AppVerName=GIMP {#GIMP_VERSION}
#else
VersionInfoVersion={#GIMP_VERSION}.{#REVISION}
AppVersion={#GIMP_VERSION}.{#REVISION}
AppVerName=GIMP {#GIMP_VERSION}.{#REVISION}
#endif
;ImmersiveControlPanel 'Publisher'
AppPublisher=The GIMP Team
;ControlPanel 'URLInfoAbout'
AppPublisherURL=https://www.gimp.org/
;ControlPanel 'HelpLink'
AppSupportURL=https://www.gimp.org/docs/
;ControlPanel 'URLUpdateInfo'
AppUpdatesURL=https://www.gimp.org/
@ -193,16 +200,17 @@ LZMANumFastBytes=273
;SignedUninstallerDir=_Uninst
#endif //NOCOMPRESSION
#if !defined(REVISION)
#if !defined(REVISION) || REVISION == "0"
OutputBaseFileName=gimp-{#GIMP_VERSION}-setup
OutputManifestFile=gimp-{#GIMP_VERSION}-setup.txt
#else
OutputBaseFileName=gimp-{#GIMP_VERSION}-{#REVISION}-setup
OutputManifestFile=gimp-{#GIMP_VERSION}-{#REVISION}-setup.txt
OutputBaseFileName=gimp-{#GIMP_VERSION}.{#REVISION}-setup
OutputManifestFile=gimp-{#GIMP_VERSION}.{#REVISION}-setup.txt
#endif
;UNINSTALLER
;ImmersiveControlPanel 'DisplayIcon'
UninstallDisplayIcon={app}\bin\gimp-{#GIMP_APP_VERSION}.exe
UninstallFilesDir={app}\uninst