DanGough / Nevergreen

This module is an alternative to Evergreen, and allows you to find the latest version and download URL for various Windows apps. Evergreen uses API queries to obtain its data whereas this module is more focussed on web scraping. This is more prone to breaking when websites are changed, hence the name.
The Unlicense
71 stars 16 forks source link

[New App Request] SysInternals ZoomIt #73

Open AScott-WWF opened 2 weeks ago

AScott-WWF commented 2 weeks ago

I have written a new NeverGreen script to return the latest version of (Microsoft) SysInternals ZoomIt, this is obtained using a webscrape against the release page: https://learn.microsoft.com/en-us/sysinternals/downloads/zoomit

N.B. For each release, there is only one (.zip) download containing the x86, x64 and ARM64 executables

Here is my Script:

# Get-SysInternalsZoomIt.ps1

$AppName = "SysInternals ZoomIt"

$Apps = @(
    @{Architecture = 'multi'; Type = 'Zip'; Pattern = 'Download ZoomIt' }
)

$ReleaseURL = 'https://learn.microsoft.com/en-us/sysinternals/downloads/zoomit'
$URL = Get-Link -Uri $ReleaseURL -MatchProperty outerHTML -Pattern $Apps.Pattern
$Version = Get-Version -Uri $ReleaseURL -Pattern 'ZoomIt v(\d+\.\d+)'

New-NevergreenApp -Name $AppName -Version $Version -Uri $URL -Architecture $Apps.Architecture -Type $Apps.Type