Skip to content
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

Native messenger won't install on M1 Mac (macOS 12.4) #4298

Closed
mrafaeldie12 opened this issue Jul 3, 2022 · 4 comments
Closed

Native messenger won't install on M1 Mac (macOS 12.4) #4298

mrafaeldie12 opened this issue Jul 3, 2022 · 4 comments

Comments

@mrafaeldie12
Copy link

  • Brief description of the problem:
    Trying to install native messenger on Mac M1 doesn't work

  • Steps to reproduce:

  1. Run :nativeinstall and get
curl -fsSl https://raw.githubusercontent.com/tridactyl/native_messenger/master/installers/install.sh -o /tmp/trinativeinstall.sh && sh /tmp/trinativeinstall.sh 1.22.1

receive the following message

Installing manifest here: /Users/<my-user>/Library/Application Support/Mozilla/NativeMessagingHosts/
Installing script here: XDG_DATA_HOME: /Users/<my-user>/.local/share/tridactyl

Successfully installed Tridactyl native messenger!
Run ':native' in Firefox to check.
  1. Run :native in tridactyl afterwards only to get an error that it doesn't detect the native messenger
  2. Try to run the ./native_main and get this
zsh: bad CPU type in executable: ./native_main
  • Tridactyl version: 1.22.1

  • Firefox version (Top right menu > Help > About Firefox): 102

  • Config: https://pastebin.com/MQsdiyMt

  • Operating system: macOS Monterey 12.4

@dougmaitelli
Copy link

Related? tridactyl/native_messenger#9

@mrafaeldie12
Copy link
Author

mrafaeldie12 commented Jul 23, 2022

Fixed by:

  • Cloning https://github.com/tridactyl/native_messenger
  • Running nimble build --cpu:arm64 -o:native_main-arm64.py
  • Executing ./.installers/install.sh local

@bovine3dom
Copy link
Member

Do you have any idea what we were doing wrong in tridactyl/native_messenger#9 ?

@mrafaeldie12
Copy link
Author

mrafaeldie12 commented Jul 24, 2022

Not entirely sure :( looks like the nativemessenger cli call is still fetching a non arm64 binary. The only thing I did really was clone the source and add the arm64 target.

Maybe this helps with debugging this is what I get out of the nativeinstall command in tridactyl cmd

curl -fsSl https://raw.githubusercontent.com/tridactyl/native_messenger/master/installers/install.sh -o /tmp/trinativeinstall.sh && sh /tmp/trinativeinstall.sh 1.22.1

Also saw that there were some checks failing on that PR, wonder if it has something to do with this.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants