altair icon indicating copy to clipboard operation
altair copied to clipboard

[Wishlist]: Add Flatpak as alternative to Snaps for Linux

Open polarathene opened this issue 5 years ago • 8 comments

Just adding a wishlist issue here for Flatpak packaging for Linux distribution. If it garners enough thumbs up from others maybe it can also be supported?

polarathene avatar Mar 14 '19 03:03 polarathene

👋🏾Thanks for opening your first issue here! Be sure to follow the issue template! ✌🏾

welcome[bot] avatar Mar 14 '19 03:03 welcome[bot]

Hey @polarathene,

I am not aware of any standard way of deploying flatpak packages from CI (but there is a travis snap provider for publishing snaps). If you can show a way to publish electron builds as flatpak through a CI job, then I would be more than happy to make your wish come true. 😊

imolorhe avatar May 11 '19 17:05 imolorhe

Yeah I understand. I have setup my own electron app with CI since and supporting snap is no problem, but flatpak wasn't supported by electron-builder.

polarathene avatar May 12 '19 03:05 polarathene

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 11 '19 03:07 stale[bot]

would love to help revisit this now that electron-builder supports flatpak!

shall I open a new ticket?

acao avatar Jan 16 '23 18:01 acao

Reopened the issue! 🙂

imolorhe avatar Jan 16 '23 18:01 imolorhe

awesome ty! #1966 would be an open duplicate of this ticket, it would seem

looking into it further, generating a .flatpak build will be possible with electron-builder and flatpak-builder, however publishing to flathub or other repositories might be a bit trickier. it appears it requires pushing to a standalone configuration git repository in the flathub org that contains some of the manifests. the submission guidelines to get set up appear to be relatively involved.

the other electron-builder publishing modules appear to interface with both HTTP apis and CLIs programmatically, however none of them involve working with an external git repository. The current electron builder support for flatpak bundles the manifests & such to a single file, so publishing to flathub is currently ruled out which requires seperate files for manifest/etc in a repository.

acao avatar Jan 16 '23 21:01 acao

Did some browsing around. It seems the packaging/publishing experience for flatpak files is not great. However like you mentioned, building the .flatpak build files should be possible.

I would have expected that the publishing pipeline would have some support for github releases or maybe even using a github repository as the flatpak repository, but that doesn't seem to be possible.

imolorhe avatar Jan 18 '23 00:01 imolorhe