#3493·tutanota

Automate Flathub publishing

Author: charlagCreated Sep 14, 2021Updated Sep 30, 2026
Labelsbuild

One of our build targets is Flatpak app distributed via Flathub. Our repo is at https://github.com/flathub/com.tutanota.Tutanota/

Flatpak is a sandboxed runtime which is supposed to be built in airgapped reproducible environment. However it is difficult to maintain and the common practice (which we eventually followed) is to pre-build a .tar and just unpack it in the build environment.

Current process of publishing Flatpak app goes like this:

  1. Build normal Tutanota Desktop release
  2. Publish the release on Github
  3. Pull Flathub repo and run ./generate.bash
  4. Push it, upload the resulting tar to the Github release
  5. Open a PR for Flathub repo, see it built (the only thing that failed is tar not being there)
  6. Merge the PR

We would like to minimize manual involvement as much as possible via automation. When we have it we can push directly to the Flathub repo without creating PR.