wingetautoupdate/Winget-AutoUpdate/functions/Get-AppInfo.ps1

13 lines
355 B
PowerShell
Raw Permalink Normal View History

2023-03-31 15:56:07 +00:00
#Get the winget App Information
Function Get-AppInfo ($AppID) {
#Get AppID Info
$String = & $winget show $AppID --accept-source-agreements -s winget | Out-String
#Search for Release Note info
2022-10-18 13:23:39 +00:00
$ReleaseNote = [regex]::match($String, "(?<=Release Notes Url: )(.*)(?=\n)").Groups[0].Value
#Return Release Note
return $ReleaseNote
2022-10-26 22:49:10 +00:00
}