Bottles icon indicating copy to clipboard operation
Bottles copied to clipboard

[Request]: Publish to Flathub with GitHub CI

Open TheEvilSkeleton opened this issue 1 year ago • 7 comments

Tell us the problem or your need

Currently, we're maintaining this repository and com.usebottles.bottles. Having to maintain both repos and continuously update them separately is annoying.

Describe the solution you'd like

Flathub enables us to publish from our own infra and CI without relying on an external repository. Since we regularly release updates, taking advantage of this would make it easier for us to maintain.

Other solutions?

No response

Additional context and references

OBS Studio did exactly this with GitHub CI: https://github.com/obsproject/obs-studio/pull/5569

TheEvilSkeleton avatar Aug 04 '22 16:08 TheEvilSkeleton

I completely agree with you

mirkobrombin avatar Aug 04 '22 17:08 mirkobrombin

In my opinion, this is how we should be publishing:

  • Each stable release goes to the stable branch
  • Each commit goes to the beta branch

TheEvilSkeleton avatar Aug 05 '22 22:08 TheEvilSkeleton

Publish a release on every commit may waste Flathub resources. I propose 1 release at night

mirkobrombin avatar Aug 06 '22 05:08 mirkobrombin

I'll message on the Flatpak Matrix.

TheEvilSkeleton avatar Aug 06 '22 14:08 TheEvilSkeleton

FYI having wanting the same thing, but since tokens are not easily available yet, as a workaround I opted to use a submodule for EasyEffects.

We keep all the dependencies in the submodule, while a copy paste of the main EasyEffects module exists in both upstream and the downstream Flathub repo.

This works decently well since to update Flathub usually only the submodule needs updating (except when updating runtime version). Gnome builder also works correctly with this setup.

I experimented with symlinks but that seems to cause flatpak-builder to not correctly pick up patches that we unfortunately need for some dependencies.

One thing I haven’t figured out is how to automate the updating of the Flathub repo, while I have experimented with submodules in f-e-d-c the problem is there is no syntax to communicate we want every tag from upstream, not say to just send a pr each time a reference file in a submodule changed. But since this is fundamentally just a workaround maybe I will write some GitHub workflow instead.

vchernin avatar Aug 06 '22 21:08 vchernin

Good to know

mirkobrombin avatar Aug 07 '22 06:08 mirkobrombin

Got this message some time ago:

image

TheEvilSkeleton avatar Aug 17 '22 20:08 TheEvilSkeleton