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
72 stars 16 forks source link

[Feature request] Android Platform Tools #23

Open o-l-a-v opened 2 years ago

o-l-a-v commented 2 years ago

Request to add Android Platform Tools to Nevergreen.

PowerShell to get latest version:

[System.Net.WebClient]::new().DownloadString('https://developer.android.com/studio/releases/platform-tools').Split(
    [System.Environment]::NewLine,
    [System.StringSplitOptions]::RemoveEmptyEntries
).ForEach{
    $_.Trim() -replace '\s{2,}', ' '
}.Where{
    $_ -like '<h4 id=*'
}[0].Split('>')[1].Split(' ')[0]

URL to always latest version of the tools:

DanGough commented 2 years ago

Thanks, I will review.