Skip to content

Commit

Permalink
Support Hermes mac64arm (#139)
Browse files Browse the repository at this point in the history
Hermes provides universal Darwin binaries.
  • Loading branch information
tmikov committed Mar 5, 2024
1 parent d8bee62 commit 236ac8c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ To update the installed JavaScript engines later on, just run `jsvu` again.
| ------------------------- | ------------------------- | ------- | ---------- | ------- | ---------------- | --------- | --------- |
| [**Chakra**][ch] | `chakra` or `ch` |||||||
| [**GraalJS**][graaljs] | `graaljs` |||||||
| [**Hermes**][hermes] | `hermes` & `hermes-repl` || |||||
| [**Hermes**][hermes] | `hermes` & `hermes-repl` || |||||
| [**JavaScriptCore**][jsc] | `javascriptcore` or `jsc` |||| ✅ <sup>\*</sup> |||
| [**QuickJS-ng**][quickjs] | `quickjs` |||||||
| [**SpiderMonkey**][sm] | `spidermonkey` or `sm` |||||||
Expand Down
1 change: 1 addition & 0 deletions engines/hermes/extract.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ const extract = ({ filePath, binary, alias, os }) => {
});
switch (os) {
case 'mac64':
case 'mac64arm':
case 'linux64': {
installer.installBinary({ 'hermes': binary });
installer.installBinary({ 'hermesc': `${binary}-compiler` });
Expand Down
3 changes: 2 additions & 1 deletion engines/hermes/predict-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@

const predictFileName = (os) => {
switch (os) {
case 'mac64': {
case 'mac64':
case 'mac64arm': {
return 'darwin';
}
case 'linux64': {
Expand Down

0 comments on commit 236ac8c

Please sign in to comment.