[Workspaces][ARM64] Bring icon to packaged apps (#37625)

Bring icon to packaged apps
This commit is contained in:
Kai Tao
2025-02-25 19:17:41 +08:00
committed by GitHub
parent a5a354a70f
commit 4eb11d6f9b

View File

@@ -192,7 +192,7 @@ namespace WorkspacesCsharpLibrary.Models
else
{
string appPath = AppPath.Replace("C:\\Program Files\\WindowsApps\\", string.Empty);
Regex packagedAppPathRegex = new Regex(@"(?<APPID>[^_]*)_\d+.\d+.\d+.\d+_x64__(?<PublisherID>[^\\]*)", RegexOptions.ExplicitCapture | RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
Regex packagedAppPathRegex = new Regex(@"(?<APPID>[^_]*)_\d+.\d+.\d+.\d+_(:?x64|arm64)__(?<PublisherID>[^\\]*)", RegexOptions.ExplicitCapture | RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
Match match = packagedAppPathRegex.Match(appPath);
_isPackagedApp = match.Success;
if (match.Success)