-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Debian package builds fail on ARMv7 #5154
Comments
You should write the deb key in package.json like this: |
Oh, that's going to make multi-arc builds even more fun. |
I think the "fpm" property doesn't support
this thread provide the good workaround way |
There is a fpm option here, maybe you missed it. My repo works fine with it. |
I found I add the fpm object into the Linux object level. I move it in deb object and the above error message not happen.
However, the fpm package still use x86 version. |
Yes the fpm still use x86 version because it don't have arm versions, but it works with arm options.
And "deb" key should be top-level under the "build" key. You can take a look at my repo BlockPi if you still have problems. |
Thanks for your figure out ! I miss this line.
That's clarify. I perhaps misunderstand @6XGate the question. @6XGate Hope the above disscussion could solve your problem. If we don't have any other confuse or question. Could close this issue. Thanks @alienzhangyw patiently explain and participate. |
Base on the discussion, I'm not sure since this has to target both x86-64 and ARM 32-bit and 64-bit. To do that, it seem node-gyp has to run from those platforms directly to build native dependencies such as |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
To the bot... Yes, still relevant. Not sure what is blocking. Not sure what else. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
To the bot... Yes, still relevant. Not sure what is blocking. Not sure what else. The reason running anything on x86 or x64 will not work for ARM builds it related to Node packages that have native components. |
A similar issue with happens with AppImage building due to some missing dependency, per #5153 |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
It's still relevant since ARM packages can't be built natively on ARM with electron-builder. But, to anyone looking for a workaround; use the combination of Electron Rebuild, Electron Packager, and electron-installer-debian to do the same thing. It is strange that the Debian packager in that list is by the same group as electron-builder and works fine on ARM. |
I just ran into this problem myself. It surprises me that this is an issue: I thought this would be one of the core features of a cross-platform tool, to be compatible with many platforms. Here is an article how to fix it for ARM: https://www.beekeeperstudio.io/blog/electron-apps-for-arm-and-raspberry-pi |
I'm a newcomer to this subject. What arch/version of fpm do we need to resolve this issue? |
The issue is not so much as to which version, but that FPM is not present with the correct arch, for ARM. I managed to get a successful electron-builder build with the following:
I am trying to use electron-builder on a PinePhone, an ARM device.
|
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I'll have to give that a try soon |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
In the process, it was easier to switch from the seemingly not really maintained `electron-forge` to using `electron-builder` and `electron` directly. This did introduce one wrinkle: `electron-builder` uses `fpm` to build `.deb` packages, which itself depends on Ruby. `electron-builder` tries to use a self-contained `fpm` and Ruby build, but it doesn't work on ARM yet (electron-userland/electron-builder#5154). I work around this problem by telling `electron-build` (via an environment variable) to use the system version of `fpm`, then ensure that Ruby and the `fpm` gem are installed in `install-dependencies.sh`.
In the process, it was easier to switch from the seemingly not really maintained `electron-forge` to using `electron-builder` and `electron` directly. This did introduce one wrinkle: `electron-builder` uses `fpm` to build `.deb` packages, which itself depends on Ruby. `electron-builder` tries to use a self-contained `fpm` and Ruby build, but it doesn't work on ARM yet (electron-userland/electron-builder#5154). I work around this problem by telling `electron-build` (via an environment variable) to use the system version of `fpm`, then ensure that Ruby and the `fpm` gem are installed in `install-dependencies.sh`.
If someone wants to make fpm in |
Is anyone else working on @mkurz's proposed steps to fix this in electron-builder? I'm thinking to take a try at this |
If someone wants to pick up the work for |
I spent some time looking at this today. The options for compiling ruby to a binary executable seem nonexistent. There was a popular tool called |
I believe I have an arm64 executable for fpm https://github.com/jgresham/fpm-arm-binary. I will update this comment with the steps to create it in a docker container soon.
|
@mmaietta do you want to take it from here? or should I try to make the remaining changes suggested in signalapp/Signal-Desktop#6063 (comment)? |
22.7.0
8.4.0
current
armv7l
/arm
/arm32
Unable to build Debian package (
.deb
) for--armv7l
due to using the wrong build of FPM, which wasx86
.The text was updated successfully, but these errors were encountered: