From b052282eaa336dcf9c29863ddb6c06d5d610e0cd Mon Sep 17 00:00:00 2001 From: Begula <83997633+vedantmgoyal2009@users.noreply.github.com> Date: Fri, 6 May 2022 00:12:29 +0530 Subject: [PATCH] Inno setup: pass MyAppVersion as a parameter (#13224) --- Installer.iss | 2 +- azure-pipelines.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Installer.iss b/Installer.iss index 33d17a433..5646d98df 100644 --- a/Installer.iss +++ b/Installer.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "Jackett" -#define MyAppVersion GetFileVersion(MyFileForVersion) +; #define MyAppVersion GetFileVersion(MyFileForVersion) (passed as a parameter) #define MyAppPublisher "Jackett" #define MyAppURL "https://github.com/Jackett/Jackett" #define MyAppExeName "JackettTray.exe" diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 79ef94c65..11cd80c87 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -266,7 +266,7 @@ stages: script: > iscc.exe $(Build.SourcesDirectory)/Installer.iss /O"$(Build.ArtifactStagingDirectory)" - /DMyFileForVersion=$(Build.BinariesDirectory)/Jackett/Jackett.Common.dll + /DMyAppVersion=$(jackettVersion) /DMySourceFolder=$(Build.BinariesDirectory)/Jackett /DMyOutputFilename=Jackett.Installer.Windows