Skip to content

Commit

Permalink
arm64 fallback: assign to statements
Browse files Browse the repository at this point in the history
  • Loading branch information
brian6932 committed May 25, 2024
1 parent e583d0c commit 6b9d82b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/manifest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,12 @@ function Get-SupportedArchitecture($manifest, $architecture) {
# Windows 10 enables existing unmodified x86 apps to run on Arm devices.
# Windows 11 adds the ability to run unmodified x64 Windows apps on Arm devices!
# Ref: https://learn.microsoft.com/en-us/windows/arm/overview
if ($WindowsBuild -ge 22000) {
$architecture = if ($WindowsBuild -ge 22000) {
# Windows 11
$architecture = '64bit'
'64bit'
} else {
# Windows 10
$architecture = '32bit'
'32bit'
}
} elseif ($architecture[-3] -eq '-') {
$success = $false
Expand Down

0 comments on commit 6b9d82b

Please sign in to comment.