Skip to content

Commit

Permalink
add 32-bit and 64-bit to parsing logic (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryfu-msft committed Nov 4, 2021
1 parent 7c61f3e commit 279c063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/WingetCreateCore/Common/PackageParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 279c063

Please sign in to comment.