From 94a4da1f39089d18bffc130048920bd9da1b5b66 Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Wed, 21 Dec 2022 20:44:00 +1000 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- .azure/pipelines/azure-pipelines.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.azure/pipelines/azure-pipelines.yml b/.azure/pipelines/azure-pipelines.yml index 7924bba0..a95b55dd 100644 --- a/.azure/pipelines/azure-pipelines.yml +++ b/.azure/pipelines/azure-pipelines.yml @@ -77,30 +77,34 @@ stages: - task: PowerShell@2 displayName: Create Installer Script File + env: + BUILD_BUILDNUMBER: $(Build.BuildNumber) + BUILD_ARTIFACTSTAGINGDIRECTORY: $(Build.ArtifactStagingDirectory) inputs: - targetType: 'inline' + targetType: 'inline' script: | $appVersion = $(Build.BuildNumber) - $appVersionShort = $AppVersion.Substring(0, $appVersion.LastIndexOf('.')) + $appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.')) $appVersionWithUnderscores = $appVersion.Replace('.', '_') $publishPath = $(Build.ArtifactStagingDirectory)\bin $installTextFile = '.azure/scripts/Installer.txt' $installTextFileContent = @" - #define AppVer "$($appVersionShort)" - #define AppVerFull "$($appVersion)" - #define AppVerPath "$($appVersionWithUnderscores)" - #define RootPath "$($publishPath)" + #define AppVer "$appVersionShort" + #define AppVerFull "$appVersion" + #define AppVerPath "$appVersionWithUnderscores" + #define RootPath "$publishPath" "@ $installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii pwsh: true - task: Installer@1 + displayName: 'Install Inno Setup' inputs: version: '6.0.5' - task: Build@1 - displayName: 'Build Inno Setup File' + displayName: 'Build Setup File' inputs: file: .azure/scripts/ArkServerManager.iss