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