New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for macOS ARM #2435
Comments
This would be great if anyone would like to contribute but unfortunately, we don't own a M1 device and I don't know whether the used native addons support ARM or what we need to change to get a working build. The ARM package also need testing and we are unable to do so. In addition, we have to set-up a ARM based macOS CI instance to build releases. List of native addons:
Ref. #1904 |
I would also love to have an ARM build. @JackTheFlap can you provide info about how to build it on M1? |
As stated in my earlier comment the signing seems to fail with a standard Apple developer account but Marktext seems to be working fine ignoring this. |
@JackTheFlap Oh so no changes needed to the default build instructions and you get an ARM build? Great. Can you maybe check that it's really not running on Rosetta? Open the process overview and on the CPU tab you should see a column that displays the architecture. Make sure that the marktext process doesn't have the value "Intel" there. Sorry if this is unnecessary because it's maybe obvious that it's running natively |
@Endogen I used Silicon Info in the screenshot to show it was running natively but here's one from Activity Monitor I just took. |
Building works fine and improves the speed to a great degree. Couldn't anyone who built this upload the DMG for others? Or would this be problematic because of the missing codesign? Otherwise I‘d be happy to share the M1 dmg. |
I just built it too, and I can confirm that it's heaps faster. At least at starting up. I haven't tried it a lot, but it does seem to work just fine. |
I'd love to have an official M1 version |
Why does the ARM build have to be specific for the Apple M1? Other ARM laptops/devices exist. |
An ARM build for the Apple M1 has to interface with macOS APIs. An ARM build for Linux has to interface with Linux APIs. An ARM build for Windows has to interface with Windows APIs. |
@JackTheFlap I followed the instructions that you gave and get these errors. Do you have any advice? I'm running on a 2021 M1 Pro.
|
The PS: Just reported this: dachev/node-cld#66 |
Thanks, that is really helpful, @wrenger. I tried several things, including removing |
After dachev/node-cld was updated to remove Line 1250 in 473b79a
cld "^2.7.1" and Line 3369 in 473b79a
cld "^2.7.1" . That fixed the unexpected_handler problem. I next got an error saying name 'openssl_fips' is not defined while evaluating condition 'openssl_fips != ""' in binding.gyp while trying to load binding.gyp . After looking at nodejs/node-gyp#652 and nodejs/node-gyp#2543 I figured out that I had to downgrade node to 16.13.0 and that fixed the problem.
|
I'm in your exact situation, but I'm a bit of a newbie with node. Can you explain more precisely how should I downgrade node? I have already node version 16.13.0 installed and available, but I have no clue on how to use it, since the building process is done via yarn which uses the default (higher) node version installed on my system. |
You can type |
Hi, I built an arm64 package, and I modified the icon to adopt Big Sur's preferred icon style. You can download here. |
We decided to not release an Apple M1 (arm64) package for version 0.17.0 because the package is block by macOS without code signing. We'll consider this issues in future releases but we don't want to confuse users with "broken binaries". You can still install the x64 binary or build MarkText for arm64 on macOS and install it yourself bypassing security mechanism. You may want to subscribe #2983 for further updates. |
Describe your feature request
Would like a universal binary able to run natively on the ARM based new M1 Macintosh computers.
What problem does this feature solve? [optional]
Performance is the big benefit for an Apple Silicon native version.
Additional context [optional]
Ideally build a universal binary that contains both Intel and ARM code.
The text was updated successfully, but these errors were encountered: