browserpass / browserpass-native

Browserpass native client app
ISC License
394 stars 50 forks source link

Native component on M1-based apple device not supported #116

Closed finwo closed 2 years ago

finwo commented 2 years ago

General information


If you are getting an error immediately after opening popup, have you followed the Configure browsers documentation section?

Yes, I have, as shown in the 'install' explanation


Exact steps to reproduce the problem

  1. Install homebrew on M1-based apple device
  2. Install pass using brew install pass
  3. Install the native component of browserpass using brew install amar1729/formulae/browserpass (using bare brew install browserpass is not supported yet by homebrew on M1 devices)
  4. Attempt running browserpass-darwin64 using the command line, which'll result in the message zsh: bad CPU type in executable: browserpass-darwin64

What should happen?

The browserpass native component should run as it would on x86-based machines.

What happened instead?

The executable did not run


Based on quickly looking at the Makefile, including darwin64-arm64 in the release files, like is the case with other platforms, would allow homebrew (or other formulae providers) to fix this in their packaging without resorting to setting up a custom pipeline.

maximbaz commented 2 years ago

I agree that I should add the darwin-arm64 binary to the release, however please be aware of two things:

  1. The brew tap right now anyway downloads the x86 binary, that will need to be adapted, if at all possible without making a separate tap (should be, right?)
  2. The current tap actually works just fine for me on M1 processor, and seems line works for other people too. Maybe you need to install rosetta? (I nevertheless agree that using native binary is preferred over x86 binary with rosetta)
maximbaz commented 2 years ago

3.0.8 published with pre-built binary for M1 👍