mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 12:13:27 +00:00
Fix for Windows setup script not working in non-Latin systems (#718)
Fix Windows setup script not working in non-Latin systems - Replace the system architecture check to use a method with a stable output
This commit is contained in:
parent
7612458d76
commit
9dea149eea
2
.github/scripts/setup-system.ps1
vendored
2
.github/scripts/setup-system.ps1
vendored
|
@ -30,7 +30,7 @@ function Set-EnvVar($variable, $value = $null) {
|
|||
if ((-not [string]::IsNullOrEmpty($env:PROCESSOR_ARCHITEW6432)) -or (
|
||||
"$env:PROCESSOR_ARCHITECTURE" -eq 'ARM64'
|
||||
) -or (
|
||||
(Get-CimInstance Win32_operatingsystem).OSArchitecture -ne '64-bit'
|
||||
-not [System.Environment]::Is64BitOperatingSystem
|
||||
# Powershell >= 6 is cross-platform, check if running on Windows
|
||||
) -or (($PSVersionTable.PSVersion.Major -ge 6) -and (-not $IsWindows))
|
||||
) {
|
||||
|
|
Loading…
Reference in a new issue