On Tue, Oct 14, 2025 at 2:40 AM Gordon Messmer gmessmer@redhat.com wrote:
Hello, people of nodejs. I would like to try to package an electron app.
I have read packaging-guidelines/Node.js and nodejs-packaging-bundler. As best I understand it, Fedora allows packaging Node.js applications which will bundle all of the required modules from npm, as long as they are JS modules and not pre-built ELF binaries. The electron npm module includes pre-build ELF binaries, so in order to package an electron application, I would need to:
build an rpm providing the electron npm module (and possibly other packages for modules containing binaries) prepare a package of the electron app, using the packaging bundler script indicate a dependency on the electron module rpm package strip the electron module from the node_modules bundle replace the pre-built electron module with a symlink to the location of the electron module, provided by an rpm package
Does that sound more or less correct?
It's largely correct. And the openSUSE folks have already done this work, so you can use it as the basis for doing this in Fedora.
https://build.opensuse.org/package/show/openSUSE:Factory/nodejs-electron https://build.opensuse.org/package/show/openSUSE:Factory/element-desktop