From 1ecf3825753f85a4e7eccc07375633b4a17de190 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Sun, 1 Jan 2023 15:03:32 +0100 Subject: [PATCH 1/5] Update predict-url.js added linux and mac aarch64 --- engines/graaljs/predict-url.js | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/engines/graaljs/predict-url.js b/engines/graaljs/predict-url.js index 628b436..966c86e 100644 --- a/engines/graaljs/predict-url.js +++ b/engines/graaljs/predict-url.js @@ -15,14 +15,20 @@ const predictFileName = (os) => { switch (os) { + case 'mac64arm': { + return 'macos-aarch64' + } case 'mac64': { - return 'macos'; + return 'macos-amd64'; } case 'linux64': { - return 'linux'; + return 'linux-amd64'; + } + case 'linux64arm': { + return 'linux-aarch64'; } case 'win64': { - return 'windows'; + return 'windows-amd64'; } default: { throw new Error( @@ -35,7 +41,7 @@ const predictFileName = (os) => { const predictUrl = (version, os) => { const fileName = predictFileName(os); const ext = os.startsWith('win') ? 'zip' : 'tar.gz'; - const url = `https://github.com/oracle/graaljs/releases/download/vm-${version}/graaljs-${version}-${fileName}-amd64.${ext}`; + const url = `https://github.com/oracle/graaljs/releases/download/vm-${version}/graaljs-${version}-${fileName}.${ext}`; return url; }; From 18e4a9d0898b67ece410998599d3af4d186c4566 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Sun, 1 Jan 2023 15:07:04 +0100 Subject: [PATCH 2/5] Updated: added aarch64 graal js Updated added linux and macos aarach64 for graaljs --- README.md | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index 896e921..75c34ee 100644 --- a/README.md +++ b/README.md @@ -34,17 +34,17 @@ To update the installed JavaScript engines later on, just run `jsvu` again. ## Supported engines per OS -| JavaScript engine | Binary name | `mac64` | `mac64arm` | `win32` | `win64` | `linux32` | `linux64` | -| ------------------------- | ------------------------- | ------------------ | ----------- | ------- | ------------------ | --------- | --------- | -| [**Chakra**][ch] | `chakra` or `ch` | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | -| [**GraalJS**][graaljs] | `graaljs` | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | -| [**Hermes**][hermes] | `hermes` & `hermes-repl` | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | -| [**JavaScriptCore**][jsc] | `javascriptcore` or `jsc` | ✅ | ✅ | ❌ | ✅ \* | ❌ | ✅ | -| [**QuickJS**][quickjs] | `quickjs` | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | -| [**SpiderMonkey**][sm] | `spidermonkey` or `sm` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| [**V8**][v8] | `v8` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| [**V8 debug**][v8] | `v8-debug` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | -| [**XS**][xs] | `xs` | ✅ (32) | ❌ | ✅ | ✅ (32) | ✅ | ✅ | +| JavaScript engine | Binary name | `mac64` | `mac64arm` | `win32` | `win64` | `linux32` | `linux64` | `linux64arm` | +| ------------------------- | ------------------------- | ------------------ | ----------- | ------- | ------------------ | --------- | --------- | --------- | +| [**Chakra**][ch] | `chakra` or `ch` | ✅ | ❌ | ✅ | ✅ | ❌ | ✅ | ❌ | +| [**GraalJS**][graaljs] | `graaljs` | ✅ | ✅ | ❌ | ✅ | ❌ | ✅ | ✅ | +| [**Hermes**][hermes] | `hermes` & `hermes-repl` | ✅ | ❌ | ❌ | ✅ | ❌ | ✅ | ❌ | +| [**JavaScriptCore**][jsc] | `javascriptcore` or `jsc` | ✅ | ✅ | ❌ | ✅ \* | ❌ | ✅ | ❌ | +| [**QuickJS**][quickjs] | `quickjs` | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ | ❌ | +| [**SpiderMonkey**][sm] | `spidermonkey` or `sm` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| [**V8**][v8] | `v8` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| [**V8 debug**][v8] | `v8-debug` | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ | ❌ | +| [**XS**][xs] | `xs` | ✅ (32) | ❌ | ✅ | ✅ (32) | ✅ | ✅ | ❌ | \* JavaScriptCore requires external dependencies to run on Windows: - On 32-bit Windows, install [iTunes](https://www.apple.com/itunes/download/). From 2066d300fabcf2216e39d79f4bd2aa69b6faa221 Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Mon, 2 Jan 2023 08:02:54 +0100 Subject: [PATCH 3/5] Update predict-url.js Hope that fixes indentation need to fix monaco editor it did now show any errors --- engines/graaljs/predict-url.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engines/graaljs/predict-url.js b/engines/graaljs/predict-url.js index 966c86e..163faf9 100644 --- a/engines/graaljs/predict-url.js +++ b/engines/graaljs/predict-url.js @@ -19,13 +19,13 @@ const predictFileName = (os) => { return 'macos-aarch64' } case 'mac64': { - return 'macos-amd64'; + return 'macos-amd64'; } case 'linux64': { return 'linux-amd64'; } case 'linux64arm': { - return 'linux-aarch64'; + return 'linux-aarch64'; } case 'win64': { return 'windows-amd64'; From 7dfd6f70d120e0a78e8b027d837f6350e5f8d27d Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Mon, 2 Jan 2023 08:03:59 +0100 Subject: [PATCH 4/5] Update predict-url.js indentation fix --- engines/graaljs/predict-url.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engines/graaljs/predict-url.js b/engines/graaljs/predict-url.js index 163faf9..92fef2e 100644 --- a/engines/graaljs/predict-url.js +++ b/engines/graaljs/predict-url.js @@ -16,7 +16,7 @@ const predictFileName = (os) => { switch (os) { case 'mac64arm': { - return 'macos-aarch64' + return 'macos-aarch64' } case 'mac64': { return 'macos-amd64'; From c0e269d774510be06d2993613582325ad25c67fe Mon Sep 17 00:00:00 2001 From: Frank Lemanschik Date: Mon, 2 Jan 2023 08:07:52 +0100 Subject: [PATCH 5/5] Update predict-url.js Fix: file is using some kind of none space indentation which does not get handled by the github editor. --- engines/graaljs/predict-url.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/engines/graaljs/predict-url.js b/engines/graaljs/predict-url.js index 92fef2e..118fde9 100644 --- a/engines/graaljs/predict-url.js +++ b/engines/graaljs/predict-url.js @@ -16,16 +16,16 @@ const predictFileName = (os) => { switch (os) { case 'mac64arm': { - return 'macos-aarch64' + return 'macos-aarch64' } case 'mac64': { - return 'macos-amd64'; + return 'macos-amd64'; } case 'linux64': { return 'linux-amd64'; } - case 'linux64arm': { - return 'linux-aarch64'; + case 'linux64arm': { + return 'linux-aarch64'; } case 'win64': { return 'windows-amd64';