Update app descriptions and friendly names

And remove redundant friendly name and descriptions from Apps.json
This commit is contained in:
Jeffrey
2026-10-26 00:50:52 +01:00
parent 72ab1f348c
commit 3ecb01efa0
17 changed files with 1290 additions and 1587 deletions
+13 -1
View File
@@ -189,7 +189,7 @@ Describe 'Import-AppDetailsFromJson' {
$apps | Should -HaveCount 1
$apps[0].FriendlyName | Should -Be 'Microsoft Clipchamp'
$apps[0].Description | Should -Be 'Video editor from Microsoft'
$apps[0].Description | Should -Be 'Create and edit videos with trimming, captions, and audio'
$apps[0].DisplayName | Should -Be 'Microsoft Clipchamp (Clipchamp.Clipchamp)'
}
@@ -215,6 +215,18 @@ Describe 'Import-AppDetailsFromJson' {
Should -Invoke Get-AppxPackage -Times 1 -Exactly
}
It 'detects the current PC Manager package while retaining its legacy ID' {
$script:AppsListFilePath = Join-Path $PSScriptRoot '..\Config\Apps.json'
Mock Get-AppxPackage { [PSCustomObject]@{ Name = 'Microsoft.MicrosoftPCManager' } }
Mock Test-AppInWingetList { $false }
$apps = @(Import-AppDetailsFromJson -OnlyInstalled -InstalledList @())
$apps | Should -HaveCount 1
$apps[0].FriendlyName | Should -Be 'Microsoft PC Manager'
$apps[0].AppId | Should -Be @('Microsoft.PCManager', 'Microsoft.MicrosoftPCManager')
}
It 'loads presets and preserves their ID arrays' {
$presets = @(Import-AppPresetsFromJson)