diff options
| author | ruki <[email protected]> | 2021-07-17 23:50:36 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-07-17 23:50:36 +0800 |
| commit | 03ffb3cb797b7029653f77309c27722d9be78483 (patch) | |
| tree | 6be1408751b609b78e8a64c42f1cbc317ad495a7 /scripts | |
| parent | 32d3a088d8db23be3636175f43265a03627eb211 (diff) | |
fix ps1
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.ps1 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 8f94dcc14..8cb27a888 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -86,8 +86,9 @@ param ( $outfile = Join-Path $temppath "$pid-xmake-installer.exe" $x64arch = @('AMD64', 'IA64', 'ARM64') $arch = if ($env:PROCESSOR_ARCHITECTURE -in $x64arch -or $env:PROCESSOR_ARCHITEW6432 -in $x64arch) { 'x64' } else { 'x86' } + $winarch = if ($env:PROCESSOR_ARCHITECTURE -in $x64arch -or $env:PROCESSOR_ARCHITEW6432 -in $x64arch) { 'win64' } else { 'win32' } $url = if ($v -is [version]) { - "https://github.com/xmake-io/xmake/releases/download/v$v/xmake-v$v.exe" + "https://github.com/xmake-io/xmake/releases/download/v$v/xmake-v$v.$winarch.exe" } else { "https://ci.appveyor.com/api/projects/waruqi/xmake/artifacts/xmake-installer.exe?branch=$v&pr=false&job=Image%3A+Visual+Studio+2017%3B+Platform%3A+$arch" } |
