var img = document.createElement('img'); img.src = "https://webstats.gnome.org//piwik.php?idsite=40&rec=1&url=https://docs.flathub.org/" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Shared Modules

A small number of dependencies that are frequently used by applications have been collected in the shared-modules repository, for use by applications being distributed with Flathub.

These can be used as a git submodule, like so:

git submodule add https://github.com/flathub/shared-modules.git

Then you can use them from your manifest. Here's an example of how to use it with a .json manifest:

"modules": [
"shared-modules/SDL/SDL-1.2.15.json",
{
"name": "foo"
}
]

You can find more examples in the repository.