Skip to content

Common Flatpak modules that can be used as a git submodule

Notifications You must be signed in to change notification settings

flathub/shared-modules

Repository files navigation

This repository contains commonly shared modules and is intended to be used as a git submodule.

To use shared modules for packaging an application, add the submodule:

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

Then modules from this repository can be specified in a JSON manifest file like this:

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

And for a YAML manifest:

modules:
  - shared-modules/SDL/SDL-1.2.15.json

  - name: foo

To update the submodule:

git submodule update --remote --merge

To remove the submodule:

git submodule deinit -f -- shared-modules
rm -rf .git/modules/shared-modules
git rm -f shared-modules
rm .gitmodules

See the description in the Flathub wiki for more information.

Please do not request adding modules unless they have many users in the Flathub repository.