Apps/Get-QGIS.ps1
$Response = Invoke-WebRequest -Uri 'https://www.qgis.org/download/' -DisableKeepAlive -UseBasicParsing $URL64 = 'https://www.qgis.org' + ($Response.Links | Where-Object {$_.outerHTML -match 'Long Term' -and $_.href -Like '*.msi'} | Select-Object -First 1 -ExpandProperty href) $Version64 = $URL64 | Get-Version $URL64LTR = 'https://www.qgis.org' + ($Response.Links | Where-Object {$_.outerHTML -match 'Latest' -and $_.href -Like '*.msi'} | Select-Object -First 1 -ExpandProperty href) $Version64LTR = $URL64LTR | Get-Version New-NevergreenApp -Name 'QGIS' -Version $Version64 -Uri $URL64 -Architecture 'x64' -Channel 'Latest' -Type 'Msi' New-NevergreenApp -Name 'QGIS' -Version $Version64LTR -Uri $URL64LTR -Architecture 'x64' -Channel 'LTR' -Type 'Msi' |