mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Change Powershell architecture detection (#1456)
This commit is contained in:
parent
3cf76cd0a9
commit
c577893878
1 changed files with 3 additions and 3 deletions
|
@ -2,10 +2,10 @@ $ErrorActionPreference = "Stop"
|
|||
Set-PSDebug -Trace 1
|
||||
$tmpdir = $Env:TEMP
|
||||
$base_url = "https://github.com/cargo-bins/cargo-binstall/releases/latest/download/cargo-binstall-"
|
||||
$type = (Get-ComputerInfo).CsSystemType.ToLower()
|
||||
if ($type.StartsWith("x64")) {
|
||||
$proc_arch = [Environment]::GetEnvironmentVariable("PROCESSOR_ARCHITECTURE", [EnvironmentVariableTarget]::Machine)
|
||||
if ($proc_arch -eq "AMD64") {
|
||||
$arch = "x86_64"
|
||||
} elseif ($type.StartsWith("arm64")) {
|
||||
} elseif ($proc_arch -eq "ARM64") {
|
||||
$arch = "aarch64"
|
||||
} else {
|
||||
Write-Host "Unsupported Architecture: $type" -ForegroundColor Red
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue