Skip to content
Edit this page

Packaging and release

Flatpak

io.github.amit9838.mousam.json, GNOME runtime (org.gnome.Platform, runtime-version 51 today). requests is bundled by data/dependencies/python3-requests.json; the app is built with Meson. Keep the sandbox permissions (finish-args) as small as they are: network, IPC, Wayland, fallback X11 and DRI. A new permission needs a strong reason and the maintainer's approval.

CI builds it in the flathub-infra/flatpak-github-actions:gnome-51 image (.github/workflows/flatpak.yml).

Snap

snap/snapcraft.yaml: core26 base, the gnome extension, strict confinement. requests comes from the Ubuntu archive (python3-requests), and the part builds the checkout with Meson. A change to dependencies or installed files must be reflected here, and .github/workflows/snap.yaml checks the build.

Every new Python dependency must be packaged for both

A Flatpak module and a Snap part. Don't add a library without the maintainer's approval; prefer GTK, libadwaita, GLib/Gio and the standard library.

Runtime versions can drift

The Flatpak runtime, the CI image and the Snap's gnome extension can sit on different GNOME versions. Use no API newer than the oldest of them.

Moving files

Lint and tests don't see resource paths, so after a move check every path list: the meson.build of each folder involved, mousam.in, po/POTFILES, mousam.gresource.xml (a moved .ui keeps its resource path with an alias) and the tests' imports. Then check that the Flatpak and Snap builds still start.

Release

Only when asked to prepare one. Change these together:

  1. version: in meson.build (filled into VERSION in src/config.py).
  2. A new <release> in data/io.github.amit9838.mousam.appdata.xml.in, with release notes (shown on the About dialog's What's New page).
  3. Screenshots in docs/screenshots/, if the look changed. The appdata, README and website use them.

Then meson test, a Flatpak build, and a Snap build.

Translations

Run ./update-pot after adding or changing strings, and ./update-po to merge the template into every po/*.po. Don't edit .po files by hand; translators maintain them (also through Weblate). A new language goes in po/LINGUAS with its .po file (21 languages besides English today).