From 279c063439af6e611d9ee7d679b801951e5147a7 Mon Sep 17 00:00:00 2001 From: Ryan Fu <69221034+ryfu-msft@users.noreply.github.com> Date: Thu, 4 Nov 2021 10:58:46 -0700 Subject: [PATCH] add 32-bit and 64-bit to parsing logic (#200) --- src/WingetCreateCore/Common/PackageParser.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/WingetCreateCore/Common/PackageParser.cs b/src/WingetCreateCore/Common/PackageParser.cs index 49f6f1c2..4fe95938 100644 --- a/src/WingetCreateCore/Common/PackageParser.cs +++ b/src/WingetCreateCore/Common/PackageParser.cs @@ -463,12 +463,12 @@ private static bool ParsePackageAndGenerateInstallerNodes( archMatches.Add(InstallerArchitecture.Arm); } - if (Regex.Match(url, "x64|win64|_64", RegexOptions.IgnoreCase).Success) + if (Regex.Match(url, "x64|win64|_64|64-bit", RegexOptions.IgnoreCase).Success) { archMatches.Add(InstallerArchitecture.X64); } - if (Regex.Match(url, "x86|win32|ia32|_86", RegexOptions.IgnoreCase).Success) + if (Regex.Match(url, "x86|win32|ia32|_86|32-bit", RegexOptions.IgnoreCase).Success) { archMatches.Add(InstallerArchitecture.X86); }