openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
920 stars 437 forks source link

[Flatpak] Have remote option #11606

Open TheEvilSkeleton opened 2 years ago

TheEvilSkeleton commented 2 years ago

Hi,

I recently got interested into OBS. I noticed that it now supports building Flatpak bundles and I find that amazing!

However, I believe there should be a remote option too, where each Flatpak package is also its own remote, so users that want to install a Flatpak package can get updates too. I am aware that Flathub exists, but Flathub is better suited for releases, where OBS could be used for pure bleeding edge.

hennevogel commented 2 years ago

@perlpunk maybe something for you?

perlpunk commented 2 years ago

I'm not sure I understand the request. Is it about OBS acting as a Flatpak remote server like Flathub? I think that's not trivial, and last time I looked for documentation about an API for Flathub I didn't find anything useful.

TheEvilSkeleton commented 2 years ago

Is it about OBS acting as a Flatpak remote server like Flathub?

Correct.

And I don't think we need a Flathub API? Flathub uses flat-manager to manage their remote, which was made from Flatpak developers from what I know.

Here's the documentation for it: https://docs.flatpak.org/en/latest/hosting-a-repository.html

Vogtinator commented 2 years ago

FYI, flatpak supports OCI remotes so you can expose flatpak images on registry.opensuse.org.

TheEvilSkeleton commented 2 years ago

Yup. However, it's undocumented, so you might want to contact the Fedora developers and ask how they set up their remote, because they use the OCI format. I got it working on GitLab CI[1] and GitHub Actions[2], so you can take a look, but I'm unsure if it's a good example or not.

  1. https://gitlab.com/TheEvilSkeleton/flatpak-gitlab-ci/-/blob/main/flatpak-gitlab-ci.yml, remote: https://gitlab.com/test-org69420
  2. https://github.com/TheEvilSkeleton/flatpak-remote/blob/main/.github/workflows/flatpak.yml, remote: https://github.com/test-org69420
orowith2os commented 1 year ago

Bump, since I'd like to use the OBS to distribute some of my own flatpaks from. The documentation still might not be there, but it's definitely worth a look. Would make distributing apps even easier for devs, too, specifically for nightlies.