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

20 lines
414 B
PowerShell
Raw Permalink Normal View History

# Get the winget App Information
2023-09-15 14:38:54 +00:00
function Get-AppInfo
{
# Get AppID Info
[CmdletBinding()]
param
(
2023-09-15 14:38:54 +00:00
[string]
$AppID
)
$String = (& $winget show $AppID --accept-source-agreements -s winget | Out-String)
# Search for Release Note info
$ReleaseNote = [regex]::match($String, '(?<=Release Notes Url: )(.*)(?=\n)').Groups[0].Value
# Return Release Note
return $ReleaseNote
2022-10-26 22:49:10 +00:00
}