Fix the Apple Silicon (macOS aarch64 / arm64) URLs for Julia nightly (#220)

* fix aarch64 urls for nightly

* rebuild js for aarch64 nightly

* test nightly on apple m1 (aarch64)

* Run on more macOS versions, and add a few comments

---------

Co-authored-by: Dilum Aluthge <dilum@aluthge.com>
This commit is contained in:
Benjamin Lorenz
2024-02-11 03:36:04 +01:00
committed by GitHub
parent bb12998da7
commit 0f702cc7c1
3 changed files with 34 additions and 5 deletions

17
lib/installer.js generated
View File

@@ -156,10 +156,23 @@ function getNightlyFileName(arch) {
if (arch == 'x86') {
throw new Error('32-bit Julia is not available on macOS');
}
versionExt = '-mac64';
else if (arch == 'aarch64') {
versionExt = '-macaarch64';
}
else {
versionExt = '-mac64';
}
}
else if (osPlat === 'linux') {
versionExt = arch == 'x64' ? '-linux64' : '-linux32';
if (arch == 'x86') {
versionExt = '-linux32';
}
else if (arch == 'aarch64') {
versionExt = '-linux-aarch64';
}
else {
versionExt = '-linux64';
}
}
else {
throw new Error(`Platform ${osPlat} is not supported`);