-
Notifications
You must be signed in to change notification settings - Fork 15
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
How to install for different architectures? #138
Comments
Hello, thanks for writing in! At first glance it looks like both |
I see! I tried a few things like using Docker run It seems the sub packages of I would have expected setting |
Ah, it looks like It's great that you found a workaround that will get the job done, all the sub-packages do include the binary, and the main package determines which one to use. Let us know if you run into any other issues! |
We'll go ahead and close this ticket out, feel free to reopen if you run into other issues. Thanks for writing in! |
When building for Electron it's possible to build for different architectures, for example:
For this to work any native modules must be installed for the target architecture. This can be achieved with npm:
or with yarn:
This works for various modules such as
serialport
andlzma-native
but not for@ngrok/ngrok
. How can I forcenpm
or (preferably)yarn
to install another architecture such as@ngrok/ngrok-linux-arm64-gnu
on a Linux x64 machine?In our case the build is running on GitHub Actions. I do not have the same problem with building for multiple architectures on macOS because a Darwin "universal" binary is installed.
The text was updated successfully, but these errors were encountered: