runegan / jsxbin

Convert jsx ExtendScript files into jsxbin files using ExtendScript Toolkit
MIT License
86 stars 22 forks source link

Add support for M1 Mac/arm64e #29

Open fartinmartin opened 2 years ago

fartinmartin commented 2 years ago

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.

justintaylor-dev commented 2 years ago

+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.

tb-b commented 2 years ago

+1, running vscode in rosetta hurts my soul

adamdehaven commented 2 years ago

Bump. ExtendScript debugger 2.x is out

https://marketplace.visualstudio.com/items?itemName=Adobe.extendscript-debug

utenma commented 2 years ago

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

JoshuaLelon commented 1 year ago

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.

utenma commented 1 year ago

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

JoshuaLelon commented 1 year ago

@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!

kratzl commented 11 months ago

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

justintaylor-dev commented 11 months ago

@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.

justintaylor-dev commented 3 months ago

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/