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] Amazon AppStream 2.0 (On Proposals list) #78

Open AScott-WWF opened 2 days ago

AScott-WWF commented 2 days ago
# Get-AmazonAppStream2.0.ps1

# Define AppName
$AppName = "Amazon AppStream 2.0"

# Main script to fetch and process links
$ReleaseUrl = "https://clients.amazonappstream.com/"
$ReleaseNotesUrl = "https://docs.aws.amazon.com/en_us/appstream2/latest/developerguide/client-release-versions.html"
$InstallInstructionsUrl = "https://docs.aws.amazon.com/appstream2/latest/developerguide/client-application-windows-user.html"

Write-Verbose "Obtaining $($AppName) Release Versions from $($ReleaseUrl)...`n"

$URL = (Set-UriPrefix -Uri (Get-Link -Uri $ReleaseUrl -MatchProperty href -Pattern '\.exe$') -Prefix $ReleaseUrl)
[version]$Version = Get-Version -String (Get-Link -Uri $ReleaseUrl -MatchProperty href -Pattern '\.exe$')
Write-Verbose "$($AppName) Release notes are available here: $($ReleaseNotesUrl)"
Write-Verbose "$($AppName) Install instructions are available here: $($InstallInstructionsUrl)"

New-NevergreenApp -Name $AppName -Version $Version -Uri $URL -Architecture 'x64' -Type 'Exe'