runegan / jsxbin

Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for M1 Mac/arm64e

fartinmartin opened this issue · comments

I'm not sure if this is possible, but on my M1 Mac I get this error when running a clone of the bolt-cep repo:

Error: dlopen(~/bolt-cep-test/node_modules/jsxbin/esdebugger-core/mac/esdcorelibinterface.node, 0x0001): tried: '~/bolt-cep-test/node_modules/jsxbin/esdebugger-core/mac/esdcorelibinterface.node' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e')), '/usr/local/lib/esdcorelibinterface.node' (no such file), '/usr/lib/esdcorelibinterface.node' (no such file)

One alternative that I would imagine working, but I haven't tried is to run/install node in Rosetta.

+1, have another M1 Mac user experiencing this:

Issue 15

Don't think this issue can be resolved until Adobe releases ExtendScript debugger 2.0 to the public, right now it's in NDA beta.

commented

+1, running vscode in rosetta hurts my soul

In order to run binaries with Roseta they must be x86_64 however on M1 node -p process.arch is set to arm64, no x86_64 binaries are installed

I get the same error. Even when I run VS Code and the Terminal app in Rosetta mode. :/ I'm assuming it has something to do with what @mindlid said but I'm not sure how to fix it.

commented

@JoshuaLelon install a node x86 version, for example 14.16.1 with nvm.

@JoshuaLelon install a node x86 version, for example 14.16.1 with nvm.

Thanks for the tip! I followed this guide:

One alternative that I would imagine working, but I haven't tried is to run/install node in Rosetta.

and now I can yarn build!

commented

Is this already solved?
Because I can run yarn, yarn build without any problems on my mac m1

@kratzl You're probably using VS Code Intel or running in Rosetta mode. Adobe still needs to update jsxbin for Apple Silicon, till then we have to wait.

Full guide for getting this working until (and if) Adobe adds binaries for Apple Silicon:

https://hyperbrew.co/blog/setup-extendscript-dev-for-apple-silicon/