Skip to content

Commit 2886461

Browse files
committed
Fix up issue joe found
1 parent 6536245 commit 2886461

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

make.ps1

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Param(
1313

1414
[Parameter(HelpMessage="Architecture (native, x64).")]
1515
[string]
16-
$Arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture,
16+
$ZipArch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture,
1717

1818
[Parameter(HelpMessage="Directory to install to.")]
1919
[string]
@@ -22,13 +22,13 @@ Param(
2222

2323
$ErrorActionPreference = "Stop"
2424

25-
if ($Arch -ieq 'x64')
25+
if ($ZipArch -ieq 'x64')
2626
{
27-
$Arch = 'x86-64'
27+
$ZipArch = 'x86-64'
2828
}
29-
elseif ($Arch -ieq 'arm64')
29+
elseif ($ZipArch -ieq 'arm64')
3030
{
31-
$Arch = 'arm64'
31+
$ZipArch = 'arm64'
3232
}
3333

3434
$target = "ponyup" # The name of the target executable.
@@ -216,7 +216,7 @@ switch ($Command.ToLower())
216216
if (-not $isLibrary)
217217
{
218218
$binDir = Join-Path -Path $Destdir -ChildPath "bin"
219-
$package = "$target-$Arch-pc-windows-msvc.zip"
219+
$package = "$target-$ZipArch-pc-windows-msvc.zip"
220220
Write-Host "Creating $package..."
221221

222222
Compress-Archive -Path $binDir -DestinationPath "$buildDir\..\$package" -Force

ponyup-init.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ $Arch = [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture
55
if ($Arch -ieq 'x64')
66
{
77
$Arch = 'x86_64'
8+
$ZipArch = 'x86-64'
89
}
910
elseif ($Arch -ieq 'arm64')
1011
{
1112
$Arch = 'arm64'
13+
$ZipArch = 'arm64'
1214
}
1315

1416
$tempParent = [System.IO.Path]::GetTempPath()
@@ -18,7 +20,7 @@ New-Item -ItemType Directory -Path $tempPath
1820

1921
$downloadUrl = 'https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest'
2022

21-
$zipName = "ponyup-$Arch-pc-windows-msvc.zip"
23+
$zipName = "ponyup-$ZipArch-pc-windows-msvc.zip"
2224
$zipUrl = "$downloadUrl/$zipName"
2325
$zipPath = "$tempPath\$zipName"
2426

0 commit comments

Comments
 (0)