-
Notifications
You must be signed in to change notification settings - Fork 322
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
Not working on Apple Silicon #361
Comments
Confirmed |
This is something that needs to be solved by dependency |
https://github.com/julienXX/terminal-notifier did not receive any update in three years, it's unlikely they'll solve any issue. On the other hand this issue will likely gain thrust as Apple plan to migrate all of their computer to the M1 chip eventually. |
isn't it only a matter of re-compiling it to support AS? terminal-notifier is listed as supporting AS in Homebrew, I am not sure if it's through Rosetta2 or native. I don't have Rosetta2 so I will install and see if it works. |
any idea on how to fix this? |
It might be enough to recompile terminal-notifier. I'm unable to test/fix as I don't have access to M1 at the moment. If anyone could investigate and submit PR that would be much appreciated. |
The easiest way is certainly to recompile. But you could probably also execute the macOS notifier tool with Rosetta like this |
If you don't want to recompile yourself, and keep avoiding Rosetta you can also install terminal-notifier via brew and change the path in node_modules/node-notifier/notifiers/notificationcenter.js |
https://github.com/julienXX/terminal-notifier seems to be dead, https://github.com/vjeantet/alerter seems to be a reasonably active fork alerter doesn't release m1 binaries but I was able to compile it fine on m1 |
Hey guys, any news on this issue? It's still not working on a M1 out of the box and @joeflateau is right, |
Running (I ran that as part of installing Docker as per https://docs.docker.com/desktop/mac/apple-silicon/; since that appears to be a compatibility layer for older Mac binaries, I wondered if it might also fix this problem, and it seems to!) |
Hi, would it be possible to update the terminal-notifier binary from the currently utilized version 1.7.2 to version 2.0.0? Besides being from 2017 and might not supporting every possible options on newer macOSs, this latest version at least runs on a M1 Mac without having to install Rosetta first. |
Hey, original author of terminal-notifier here 👋 I feel your pain, as I was wanting to use this project in a build of ours, so I'm looking into picking up maintenance myself again and publish new code-signed releases. Will report back when I have an update. |
@alloy I just cloned https://github.com/julienXX/terminal-notifier and simply built it with absolutely no changes and it seems to compile fine for arm64. Any chance of just releasing an update with no code changes just to resolve this issue? Thanks!
|
Any news on this? 😅 |
I was facing the same issue and running what @candu suggested with softwareupdate --install-rosetta seems to have solved the issue for me |
Hi @alloy, Any Update on terminal-notifier. Is it possible to create a universal build for it |
Just want to chime in here, brand new M3 Pro, ran into this setting up an active project on the new machine. This fixed it immediately 👇 Thanks @candu !
|
This is fixed for me. Thanks! |
Looking for a simple fix that is not rosetta - as that creates as many issues as it solves |
For now I'm using patch-package. From your project's root directory: brew install terminal-notifier
npm i -D patch-package Open -const notifier = path.join(
- __dirname,
- '../vendor/mac.noindex/terminal-notifier.app/Contents/MacOS/terminal-notifier'
-);
+const notifier = '/opt/homebrew/bin/terminal-notifier'; Your path may differ, and if so simply run Then to create the patch file, run from your project's root directory: npx patch-package node-notifier Then update your "scripts": {
+ "postinstall": "patch-package"
} Commit everything including the new patch file and you'll be all set for future What's also nice is that Instructions above will be slightly altered if you're using You may also choose to not add the |
I have access to an Intel Mac and an M2 Mac without Rosetta installed and running the examples with the commands |
Thanks for your comment @TrevorSayre this worked for me. |
Trying to send a notification on an M1 MacBook produces an error:
I suppose it comes down to the terminal notifier not having a native M1 build? I am not using Rosetta.
The text was updated successfully, but these errors were encountered: