On Tue, Oct 14, 2025 at 2:40 AM Gordon Messmer <[email protected]> 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





-- 
真実はいつも一つ!/ Always, there's only one truth!
-- 
_______________________________________________
nodejs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to