6 lines
318 B
PowerShell
6 lines
318 B
PowerShell
function Get-WAUAvailableVersion{
|
|
#Get Github latest version
|
|
$WAUurl = 'https://api.github.com/repos/Romanitho/Winget-AutoUpdate/releases/latest'
|
|
$Script:WAULatestVersion = ((Invoke-WebRequest $WAUurl -UseBasicParsing | ConvertFrom-Json)[0].tag_name).Replace("v","")
|
|
return [version]$WAULatestVersion
|
|
} |