2023-09-15 14:33:51 +00:00
|
|
|
# Get the winget App Information
|
2022-07-05 14:48:23 +00:00
|
|
|
|
2023-09-15 14:33:51 +00:00
|
|
|
Function Get-AppInfo
|
|
|
|
{
|
|
|
|
# Get AppID Info
|
|
|
|
[CmdletBinding()]
|
|
|
|
param
|
|
|
|
(
|
|
|
|
[string]$AppID
|
|
|
|
)
|
2022-07-05 14:48:23 +00:00
|
|
|
|
2023-09-15 14:33:51 +00:00
|
|
|
$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
|
2022-07-05 14:48:23 +00:00
|
|
|
|
2023-09-15 14:33:51 +00:00
|
|
|
# Return Release Note
|
|
|
|
return $ReleaseNote
|
2022-10-26 22:49:10 +00:00
|
|
|
}
|