Skip to content

Commit 14f211a

Browse files
committed
fix graaljs on mac
1 parent fd07026 commit 14f211a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/engines/graaljs.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,11 @@ class GraalJSInstaller extends Installer {
5454

5555
async install() {
5656
const root = `graalvm-ce-java11-${this.version}`;
57-
this.binPath = await this.registerBinary(`${root}/languages/js/bin/js`, 'graaljs');
57+
if (platform === 'darwin64') {
58+
this.binPath = await this.registerBinary(`${root}/Contents/Home/languages/js/bin/js`, 'graaljs');
59+
} else {
60+
this.binPath = await this.registerBinary(`${root}/languages/js/bin/js`, 'graaljs');
61+
}
5862
}
5963

6064
async test() {

0 commit comments

Comments
 (0)