File tree Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Expand file tree Collapse file tree 2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 13
13
14
14
[Parameter (HelpMessage = " Architecture (native, x64)." )]
15
15
[string ]
16
- $Arch = [System.Runtime.InteropServices.RuntimeInformation ]::OSArchitecture,
16
+ $ZipArch = [System.Runtime.InteropServices.RuntimeInformation ]::OSArchitecture,
17
17
18
18
[Parameter (HelpMessage = " Directory to install to." )]
19
19
[string ]
@@ -22,13 +22,13 @@ Param(
22
22
23
23
$ErrorActionPreference = " Stop"
24
24
25
- if ($Arch -ieq ' x64' )
25
+ if ($ZipArch -ieq ' x64' )
26
26
{
27
- $Arch = ' x86-64'
27
+ $ZipArch = ' x86-64'
28
28
}
29
- elseif ($Arch -ieq ' arm64' )
29
+ elseif ($ZipArch -ieq ' arm64' )
30
30
{
31
- $Arch = ' arm64'
31
+ $ZipArch = ' arm64'
32
32
}
33
33
34
34
$target = " ponyup" # The name of the target executable.
@@ -216,7 +216,7 @@ switch ($Command.ToLower())
216
216
if (-not $isLibrary )
217
217
{
218
218
$binDir = Join-Path - Path $Destdir - ChildPath " bin"
219
- $package = " $target -$Arch -pc-windows-msvc.zip"
219
+ $package = " $target -$ZipArch -pc-windows-msvc.zip"
220
220
Write-Host " Creating $package ..."
221
221
222
222
Compress-Archive - Path $binDir - DestinationPath " $buildDir \..\$package " - Force
Original file line number Diff line number Diff line change @@ -5,10 +5,12 @@ $Arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
5
5
if ($Arch -ieq ' x64' )
6
6
{
7
7
$Arch = ' x86_64'
8
+ $ZipArch = ' x86-64'
8
9
}
9
10
elseif ($Arch -ieq ' arm64' )
10
11
{
11
12
$Arch = ' arm64'
13
+ $ZipArch = ' arm64'
12
14
}
13
15
14
16
$tempParent = [System.IO.Path ]::GetTempPath()
@@ -18,7 +20,7 @@ New-Item -ItemType Directory -Path $tempPath
18
20
19
21
$downloadUrl = ' https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest'
20
22
21
- $zipName = " ponyup-$Arch -pc-windows-msvc.zip"
23
+ $zipName = " ponyup-$ZipArch -pc-windows-msvc.zip"
22
24
$zipUrl = " $downloadUrl /$zipName "
23
25
$zipPath = " $tempPath \$zipName "
24
26
You can’t perform that action at this time.
0 commit comments