-
-
Notifications
You must be signed in to change notification settings - Fork 393
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
Provide pre-built downloads for ARM64 architecture for Electron #601
Comments
I second this. |
Same problem here, happy to help to incorporate this on the github action |
We've actually had to switch our development back to node-sqlite3 because this has persisted along with node miss match errors when building in electron. |
@rathboma Can we use your AWS box build? |
How build it from source when no prebuild binanry on M1 mac |
it stoped at rebuilding status over one hour. whats happen? how fix it? |
I found why rebuild stopped. |
@JoshuaWise email me and I'll give you a sudo enabled login to my AWS arm box if you want it. First name dot lastname Gmail. :-) |
also win32-ia32 with Electron |
Any update on this? I could really use a pre-build binary for arm64 as well. Or, alternatively, is there any way to avoid rebuilding the module every time? I'd sure like reducing the 5-10 minute builds every time on my Pi 4. |
Same question here, any update or help you need about this? 🤔 |
Just chiming in here - it'd probably be most future-proof if this project switches to N-API first. Currently, there's already 26 prebuilds for every release, and every new Electron or Node version adds to that. When adding additional platforms/architectures to the mix, that number will once again increase exponentially. We did the same in node-keytar and it reduced the amount of prebuilds from 92 (!) to 12. A large part (but not all) of the N-API migration can be handled by its conversion tool. I've blocked some time towards the end of this month to look into that 👍🏼 |
On a related side note, does anyone know if there's an option in |
Hello @baryon, |
Yes, no problem here 1,check your node versison, if you use M1, update node to the latest version 16
2,write package.json like
3, |
@JoshuaWise Now that Node 16 is LTS, would it be possible for a new version to be released with ARM64 Electron prebuilds? I would love to be able to fully swap to this from |
I too am being held up, every time I try to build an app I'm try to port across from x64 to arm64 I keep having to rebuild this module but it seems to fail... a prebuilt binary would definitely help me too |
Same here. An arm64 binary would be extremely helpful! |
@JoshuaWise Is there any sort of update you could possibly provide for this? I'm sure you're busy, and with the holidays coming up, it might get even harder to get this done 😅 . If you could provide any sort of rough guess on when you expect to be able to take this on, it would be greatly appreciated, even if the answer is that it will be months |
Alternatively to doing this for us, @JoshuaWise where could we find the build instructions? We might be able to give it a shot ourselves to ease some of the work off you. |
I would like to chime in that binaries for linux ia32 (electron and node) would be very helpful. |
A great example of optimal binary distribution is the Node Sharp project, using N-API v5 and github actions, resulting in just 8 binaries for all OS's that can be used for Electron or just bare NodeJS. https://github.com/lovell/sharp/tree/master/.github/workflows |
I ended up just forking this project and modifying the build actions to make the binaries I need. My actual project now downloads its binaries from there. To do the linux ia32 binaries it was necessary to first apt-get install g++-multilib and gcc-multilib, but otherwise simple. |
Nice! Would it be pretty simple to put together a PR with those changes onto this repo? |
Yes although I made another somewhat hacky change in able to get the library to work when called from electron's renderer process like we are always told never to do 👀. I could make a clean fork that only changes the build actions though. The additional action is:
|
@cbartondock I tried adding your repo to my package.json file but now it fails to run |
Other than changes to the build actions all I did was this: cbartondock@5b1a790 To make it compatible with my typescript stack. That said I made a lot of changes to the build.yml file and removed many builds I was not using to save time, so potentially that could be causing your issue as well. The relevant code that needs to be added to get it to build linux ia32 is above. |
This is actually a dependency of an app I'm trying to build, so in the package.json file I've changed the url to your fork, then delete the yarn.lock file and run |
Perhaps this is a low-hanging fruit, now that #714 is merged. PRs welcome. |
Can't easily test this as a PR, but a cropped up version of
seems to build ok. How would one go about testing the result? Having prebuilts is really a must for adoption on RPi, people tend to report stuck installs when it just takes forever. I can submit a PR blindly if that helps. |
So far my problem has disappeared from trying to port across an app. However I have to work thru some other errors before I know for sure this isn't a problem anymore. I'll update this comment once I know for sure |
Oops, my comment wasn't about arm64. Should I create a separate issue for 32 bit linux/arm/v7? |
At this stage I'm not experiencing problems, if I do encounter any I can open the issue and tag you in it, thanks for the clarification |
I run Beekeeper Studio and I want to move to better-sqlite3 over sqlite3 due to a number of issues (you were right after all, it is better :-).
As part of the electron-builder build process it downloads pre-built binaries. This works great for Linux x64, but it'd be great to also provide an arm64 build.
Would that be possible? Not sure if you use Github Actions for build, but happy to give you access to my arm64 AWS box if you want to share it.
The text was updated successfully, but these errors were encountered: