@@ -1,27 +1,44 @@
1−# Flathub
1+Flathub
2+-------
23
3−Flathub is the central place for building and hosting Flatpak builds.
4+Flathub is the central place for building and hosting flatpak builds.
45
5−Using the Flathub repository
6−----------------------------
6+Building applications
7+---------------------
8+
9+Application manifests should go in their own branches, named after the application ID.
10+
11+For example, for gnome-recipes, there is a branch named org.gnome.Recipes which has
12+the org.gnome.Recipes.json file at the toplevel.
713
8−To install applications that are hosted on Flathub, use the following:
14+The manifests should build releases, not development snapshots, so please use
15+tarballs or git tags, not just the tip of a branch.
16+
17+In case you build from a git tag, please specify both the tag name and the commit id, like so:
918```
10−flatpak remote-add flathub https://flathub.org/repo/flathub.flatpakrepo
11−flatpak install flathub org.gnome.Recipes
19+ "branch": "1.0.4",
20+ "commit": "cdfb19b90587bc0c44404fae30c139f9ec1cca5c"
1221```
22+This makes the build repeatable, since a tag can otherwise change its value over time.
23+You can also use only a commit, but specifying a tag name if there is one is good for readability.
24+
25+Flathub always builds in the flatpak branchname "stable", and it always passes --default-name=stable,
26+so you don't need to specify a branch key. But if you do (not recommended), it must be "stable".
1327
14−To install applications from the beta branch, use the following:
28+Flathub requires that you build against an sdk that is itself hosted on Flathub. The same goes for
29+sdk extensions that may be required to build your application. The easiest way to see what runtimes
30+are currently available is to install the flathub remote and use
1531```
16−flatpak remote-add flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
17−flatpak install flathub-beta org.godotengine.Godot
32+flatpak remote-ls --runtime flathub
1833```
34+All applications in flathub should ship with appstream data.
1935
20−For more information and more applications see https://flathub.org
21−
22−Contributing to Flathub
23−-----------------------
36+Using the flathub repository
37+----------------------------
2438
25−For information on creating packages or reporting issues please see the [contributing page](/CONTRIBUTING.md).
39+To install applications that are hosted on flathub, use the following:
40+```
41+flatpak remote-add flathub http://flathub.org/repo/flathub.flatpakrepo
42+flatpak --user install flathub org.gnome.Recipes
43+```
2644
27−***Note:*** *this repository is not for reporting issues related to the flathub.org website itself or contributing to its development. For that, go to https://github.com/flathub/website*