Skip to content
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

Flatpak Distribution #656

Open
t3chguy opened this issue Apr 24, 2017 · 23 comments
Open

Flatpak Distribution #656

t3chguy opened this issue Apr 24, 2017 · 23 comments

Comments

@t3chguy
Copy link
Member

t3chguy commented Apr 24, 2017

Investigate distributing electron build in a flatpak to support moar distros

@ara4n
Copy link
Member

ara4n commented Apr 24, 2017

the core team doesn't have bandwidth to support moar distros, so this bug is open to whoever wants to pick it up :) (i vaguely remember someone already working on one? plus there's already Revolt too)

@Croydon
Copy link

Croydon commented Apr 24, 2017

You could replace the current offered .deb version with it since Flatpaks are running also on Ubuntu and Debian. Furthermore since Ubuntu is moving back to Gnome they will get even more Flatpak-ish.

Promoting a Flatpak version to an official version would be nice :)

@mcatanzaro
Copy link

Why Electron? That requires bundling a separate copy of Chrome just for Riot... and again for every other Electron app you might want to use. Why not use WebKitGTK+, the web engine that comes for free the GNOME flatpak runtimes? Revolt uses it:

flatpak install --from https://flatpak.perezdecastro.org/revolt.flatpakref

@t3chguy
Copy link
Member Author

t3chguy commented Apr 24, 2017

@mcatanzaro funnily enough, author of revolt submitted a PR to package this electron based app into flatpak (#3723)

@aperezdc
Copy link

@t3chguy @mcatanzaro I am sticking with Revolt myself, but I already have some experience building Flatpaks so it seemed interesting to the contribute the packaging to Riot. If that helps getting more users, and helping support more distributions, then it's a good thing thing for the Matrix ecosystem 😉

@jgarciao
Copy link

jgarciao commented Nov 16, 2017

Riot.im is available as flatpak application on Flathub since a couple of days ago. It works very well in my Debian 9 machine. I think by the directives of the store you can request authorship and maintain the package if you are interested.

https://flathub.org/apps.html

Quick Installation from the command line:
flatpak install --from https://flathub.org/repo/appstream/im.riot.Riot.flatpakref

Repo with the build file: https://github.com/flathub/im.riot.Riot

@Mikaela
Copy link

Mikaela commented Apr 29, 2018

Would electron-userland/electron-builder#512 be blocking official Flatpak distribution?

@t3chguy
Copy link
Member Author

t3chguy commented Apr 29, 2018

not blocking but means it's not as simple as changing a config line, and instead the whole packing process has to be done/used

@uhoreg
Copy link
Member

uhoreg commented Jul 14, 2018

The flatpak from flathub (https://flathub.org/apps/details/im.riot.Riot) seems to be currently maintained (it's been updated to the latest version). It's based on the official Riot deb file, which is a bit of a roundabout way of doing things, but looks like a simple way of doing it.

http://docs.flatpak.org/en/latest/electron.html has information about building a flatpak for an Electron application, which is probably a more proper way of doing things (which element-hq/element-web#3723 might be doing).

@ell1e
Copy link

ell1e commented Dec 22, 2020

It was suggested to me to comment here pointing out the flatpak on flathub currently only supports x64. For the PinePhone, Pinetab, Librem 5, and Raspberry Pis, an ARM64 flatpak would be very useful. So that would be cool if that could happen one day, either through whenever official flatpaks happen or in some other way.

@Croydon
Copy link

Croydon commented Dec 22, 2020

In my opinion, if the Element Team decides to provide a Flatpak official they should make the Flathub one the official one. The Element Team can request access at Flathub for the Element Flatpak repository if they don't have access yet.

@june128
Copy link

june128 commented May 9, 2023

Now Flathub even provides verification, so having an official app there would look even better!
Also having an official Flatpak distribution would solve the issue, where currently Element officially only supports deb-based distros.

@t3chguy
Copy link
Member Author

t3chguy commented May 9, 2023

where currently Element officially only supports deb-based distros.

This isn't true, we support all glibc-x86_64 Linux machines via the tarball - https://packages.element.io/desktop/install/linux/index.html - we don't have people on the Webapp team with Flatpak / Arch / etc packaging experience so the only autoupdater/package manager we handle is Apt/Deb and delegate support of other packages to the community.

@june128
Copy link

june128 commented May 9, 2023

@t3chguy A fair enough, I didn't know that. But it doesn't seem to be written on the Element website and aside from that I also wouldn't say a tarball is the most user-friendly way of application distribution. So for an end-user without much Linux insights, who relies on a simple method or instructions, effectively only Debian and Ubuntu are officially supported.

@foresto
Copy link

foresto commented May 11, 2023

where currently Element officially only supports deb-based distros.

This isn't true, we support all glibc-x86_64 Linux machines via the tarball - https://packages.element.io/desktop/install/linux/index.html

I don't see any way to discover that. To download Element, here's what I do:

  1. Go to https://element.io/
  2. Click the big Get started button
  3. Scroll down and click the Get the app button
  4. Scroll down to the Desktop section and click the button for my OS (Linux)

That takes me to Debian / Ubuntu x86_64 APT repo instructions. Nowhere on any of those pages did I see a link to a tarball.

Did I miss something? Because it looks to me like the tarball is not discoverable, and therefore might as well not exist. Did someone forget to link it on the download page?

@t3chguy
Copy link
Member Author

t3chguy commented May 11, 2023

The marketing page you're referring to is just behind, but we've informed all known packagers about it multiple times

@foresto
Copy link

foresto commented May 11, 2023

The marketing page you're referring to is just behind

Whether we call element.io a "marketing page" or something else, it is the place where people go when they want to try Element. I think it would be fair to say that a build not listed there is a build not offered.

Perhaps this should be reported as an issue of its own?

@foresto
Copy link

foresto commented May 11, 2023

we've informed all known packagers about it multiple times

That has apparently not been effective, because the Flatpak repo resorted to unpacking the .deb and packaging its executable, and has been doing so until about 13 hours ago, presumably because they discovered the existence of the tarball here in these comments.

@t3chguy
Copy link
Member Author

t3chguy commented May 12, 2023

@foresto the commit you linked is from an Element employee. We broadcast the availability of the tarballs in the Element Package Maintainers room weeks ago, the flatpak maintainer is there.

@foresto
Copy link

foresto commented May 12, 2023

We broadcast the availability of the tarballs in the Element Package Maintainers room weeks ago,

Oh, so support for generic glibc-x86_64 via this tarball is new? That would make its lack of visibility understandable. I hope it gets a discoverable link soon. Having it available a couple years ago would have saved me some time and frustration.

And, there's an Element package maintainers room? That might have been helpful to know as well.

@t3chguy
Copy link
Member Author

t3chguy commented May 12, 2023

#597 is the PR which added it

And, there's an Element package maintainers room? That might have been helpful to know as well.

Its an invite only coordination room for maintainers of known public Element community packages, used for security release coordination also

@DemiMarie
Copy link

Are the tarballs signed by Element?

@konomikitten
Copy link

It'd be nice if the Matrix Foundation handled this instead of letting the Flathub Community do the work. Especially considering the popularity of Flatpaks and the fact that Element is a security sensitive application. This issue is 7 years old now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests