Skip to content

Commit

Permalink
Fix steam icons having an invalid path
Browse files Browse the repository at this point in the history
  • Loading branch information
mrixner committed Mar 2, 2025
1 parent 2cd76b8 commit 7cbf564
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public Package(
{
"Winget" => Source.Name switch
{
"Steam" => id.ToLower().Split("\\")[^1].Replace("steam app ", "steam:").Trim(),
"Steam" => id.ToLower().Split("\\")[^1].Replace("steam app ", "steam-").Trim(),
"Local PC" => id.ToLower().Split("\\")[^1],
"Microsoft Store" => id.IndexOf('_') < id.IndexOf('.') ? // If the first underscore is before the period, this ID has no publisher
string.Join('_', id.ToLower().Split("\\")[1].Split("_")[0..^4]) : // no publisher: remove `MSIX\`, then the standard ending _version_arch__{random id}
Expand Down

0 comments on commit 7cbf564

Please sign in to comment.