build: Add a Flatpak manifest
Created by: bochecha
This allows building the master branch of Hamster with a simple command:
$ flatpak-builder _build build-aux/flatpak/org.gnome.Hamster.json
For those who don't know Flatpak much, here are a few additional instructions.
- you need to install Flatpak, Flatpak Builder and configure the Flathub remote: https://flatpak.org/setup/
- you will need to install the GNOME platform and sdk to build;
- to make rebuilds faster you want to use the
--ccache
and--force-clean
options; - once the app is built, you need to export it to a local repo, configure that local repo, then install from that repo; this can be automated with the
--install
and--user
options;
All in all, the following two commands should do the right thing:
$ flatpak install flathub org.gnome.Platform//3.34 org.gnome.Sdk//3.34
$ flatpak-builder --force-clean --ccache --user --install _build build-aux/flatpak/org.gnome.Hamster.GUI.json
If this is merged, we can look at having automatic builds in your CI, published to a development repo, etc…
And then I can help you send the next release to Flathub if you're interested. slightly_smiling_face