

How do you turn that into a flatpak package that your users can install? Scripts app -platform linux -arch 圆4 -out dist/Īnd you end up with something like this in your dist folder. You now run electron-packager to build the app for flatpak: $ electron-packager. Installationįor use from command-line: $ npm install -g use in npm scripts or programmatically: $ npm install -save-dev your Electron app lives in path/to/app, and has a structure like this. Please note that as of 19.08, they have removed support for the i386 arch. flatpak -user remote-add -if-not-exists flathub įlatpak -user install gnome /x86_64/1.6 /i386/1.6Īpps using Electron 6 or above require a runtime version of 19.08 instead of 1.6. The following example will install the freedesktop runtime for both If you already are running flatpak apps you may have the freedesktop runtime

That base will be autoinstalledĪctually running the apps will require the freedesktop runtime to be installed. For Electron apps usingĮlectron 6 and above, elfutils is required.īuilding a flatpak for an Electron app requires installing a "base" flatpakĪpplication with electron library dependencies. This tool requires flatpak and flatpak-builder >= 0.8.2 to be installed on Add flatpak support to an electron app using electron-packager
