From 26218a1a7cc68659805f184738f7c623ba8e6239 Mon Sep 17 00:00:00 2001 From: Aaron Parker Date: Fri, 29 Nov 2024 09:46:05 +1100 Subject: [PATCH] Update Get-QGIS.ps1 #775 --- Evergreen/Apps/Get-QGIS.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Evergreen/Apps/Get-QGIS.ps1 b/Evergreen/Apps/Get-QGIS.ps1 index 9f93724d..4d5223fb 100644 --- a/Evergreen/Apps/Get-QGIS.ps1 +++ b/Evergreen/Apps/Get-QGIS.ps1 @@ -19,12 +19,12 @@ function Get-QGIS { # Return an object for each channel foreach ($Channel in $res.Get.Update.Channels) { - $Version = "$($UpdateFeed.$Channel.version)-$($UpdateFeed.$Channel.binary)" + $Version = "$($UpdateFeed.$Channel.major).$($UpdateFeed.$Channel.minor).$($UpdateFeed.$Channel.patch)-$($UpdateFeed.$Channel.binary)" [PSCustomObject]@{ Version = $Version Channel = $Channel - Date = $UpdateFeed.$Channel.date + Date = $(if ($UpdateFeed.$Channel.date -eq "") { $null } else { ConvertTo-DateTime -DateTime $UpdateFeed.$Channel.date -Pattern "yyyy-MM-dd" }) URI = $res.Get.Download.Uri -replace $res.Get.Download.ReplaceText, $Version } | Write-Output } -} \ No newline at end of file +}