From a4f9a8407ce002198c169b283e456c5b08a69263 Mon Sep 17 00:00:00 2001 From: Brian <18603393+brian6932@users.noreply.github.com> Date: Tue, 17 Oct 2023 06:21:16 -0400 Subject: [PATCH] arm64 fallback: assign to statements --- lib/manifest.ps1 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/manifest.ps1 b/lib/manifest.ps1 index 00ac8379e6..b8b0902c93 100644 --- a/lib/manifest.ps1 +++ b/lib/manifest.ps1 @@ -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