FLATPAK MANIFEST(5) (NAME) flatpak-manifest - (DESCRIPTION) (Flatpak) (manifest) (recipe) json yaml . flatpak-builder . (FILE FORMAT) . (Toplevel properties) : id app-id () (application id) . <> . branch () (export) . default-branch . default-branch --default-branch (override) . ( ) default-branch --default-branch . default-branch () . master . --default-branch . collection-id () (collection ID) . (P2P) . . extension-tag () (extension point) . .. (mount) . . . . . token-type ( ) . . runtime () (runtime) . runtime-version () master . sdk () (SDK) . var () /var ( ) . metadata () (finishing). command () . . (wrapper) . flatpak run D-Bus . build-runtime () . build-extension () (extension). separate-locales () (locale) . true . id-platform () SDK . metadata-platform () . writable-sdk () true SDK /usr . build-runtime true . appstream-compose () appstreamcli compose (cleanup). true . sdk-extensions ( ) SDK /usr. platform-extensions ( ) SDK . base () . . base-version () base. branch . base-extensions ( ) . inherit-extensions ( ) SDK . inherit-sdk-extensions ( ) SDK . tags ( ) . build-options () . . modules ( ) . json yaml . . add-extensions () . . . add-build-extensions () add-extensions. . cleanup ( ) . / ( /app) (basename) . cleanup-commands ( ) . cleanup-platform ( ) . cleanup-platform-commands ( ) . prepare-platform-commands ( ) SDK . SDK . finish-args ( ) flatpak build-finish . rename-desktop-file () (id) . launchable appdata . rename-appdata-file () appdata (metainfo) . provides . ( ..) rename-mime-file () mimetypes . ( ..) rename-icon () . . rename-mime-icons ( ) mime . . ( ..) appdata-license () project_license appdata (metainfo) . . copy-icon () rename-icon . desktop-file-name-prefix () Name . desktop-file-name-suffix () Name . (Build Options) . arch . : cflags () CFLAGS . ( ) . cflags-override () true cflags . cppflags () CPPFLAGS . ( ) . cppflags-override () true cppflags . cxxflags () CXXFLAGS . ( ) . cxxflags-override () true cxxflags . ldflags () LDFLAGS . ( ) . ldflags-override () true ldflags . prefix () ( /app /usr ). libdir () (libdir) ( /app/lib /usr/lib ). append-path () PATH ( ). prepend-path () PATH ( ). append-ld-library-path () LD_LIBRARY_PATH ( ). prepend-ld-library-path () LD_LIBRARY_PATH ( ). append-pkg-config-path () PKG_CONFIG_PATH ( ). prepend-pkg-config-path () PKG_CONFIG_PATH ( ). env () . ( cflags ldflags) . (null) . secret-env ( ) build-commands post-install . build-args ( ) flatpak build. test-args ( ) build-args . config-opts ( ) . secret-opts ( ) (configure) . . : '-DSECRET_ID=$CI_SECRET' make-args ( ) make . make-install-args ( ) make install . strip () true ( false ) ELF (strip). no-debuginfo () ( strip true ) flatpak-builder ELF . no-debuginfo true . no-debuginfo-compression () debuginfo . no-debuginfo-compression true . arch () . (Extension) . : directory () (mount) . /app /usr . bundle () true . remove-after-build () true . add-build-extensions . : autodelete, no-autodownload, subdirectories, add-ld-path, download-if, enable-if, autoprune-unless, merge-dirs, subdirectory-suffix, locale-subset, version, versions. . (Module) (source) . . . . : name () . '/' . disabled () true . sources ( ) . json yaml . . secret-env ( ) build-commands post-install . config-opts ( ) (configure) . secret-opts ( ) configure . : '-DSECRET_ID=$CI_SECRET' make-args ( ) make . make-install-args ( ) make install . rm-configure () true configure . configure . no-autogen () autogen. no-parallel-make () make . install-rule () make install . no-make-install () make install ( ). no-python-timestamp-fix () *.py[oc] ostree. cmake () cmake configure ( : buildsystem ). buildsystem () : autotools, cmake, cmake-ninja, meson, simple, qmake builddir () . subdir () . build-options () . . build-commands ( ) ( make make install ). <> . /bin/sh -c POSIX (piping) . make(1). post-install ( ) . . cleanup ( ) . / ( /app) . . ensure-writable ( ) (hard-links) . . . only-arches ( ) . skip-arches ( ) . cleanup-platform ( ) . run-tests () true . test-rule () (target) . make <> ninja <> . . test-commands ( ) . license-files ( ) LICENSE . modules ( ) . json yaml . (Sources) . type . json yaml . . (All sources) only-arches ( ) . skip-arches ( ) . dest () . (Archive sources - tar, zip) type "archive" path () . url () (URL) . path . mirror-urls ( ) . referer () <> HTTP . disable-http-decompression () HTTP . git-init () . archive-type () . : "rpm", "tar", "tar-gzip", "tar-compress", "tar-bzip2", "tar-lzip", "tar-lzma", "tar-lzop", "tar-xz", "tar-zst", "zip" "7z". md5 () md5 . md5 sha256 . sha1 () sha1 . sha1 sha256 . sha256 () sha256 . sha512 () sha512 . strip-components ( ) . . dest-filename () (basename) . (Git sources) type "git" path () . git-clone URL file:///... . url () . path . SSH ssh://user@domain/path/to/repo.git . branch () . .. . master . tag () (tag) . commit () . branch / . . disable-fsckobjects () transfer.fsckObjects=1 . () . disable-shallow-clone () (shallow clone) . disable-submodules () . disable-lfs () Git LFS. LFS gitconfig . Bzr (Bzr sources) type "bzr" url () bzr. revision () (revision) . Svn (Svn sources) type "svn" url () svn /. revision () . (Directory sources) type "dir" path () . . skip ( ) . (File sources) type "file" path () . url () . path . mirror-urls ( ) . referer () <> HTTP . disable-http-decompression () HTTP . md5 () md5 . . md5 sha256 . sha1 () sha1 . . sha1 sha256 . sha256 () sha256 . . sha512 () sha512 . . dest-filename () path . (Script sources) (/bin/sh) . type "script" commands ( ) . dest-filename () autogen.sh . (Inline data sources) . type "inline" dest-filename () . contents () . base64 () base64 . (Shell sources) . type "shell" commands ( ) . (Patch sources) type "patch" path () (patch) . paths ( ) . strip-components ( ) -p patch . use-git () <> <> (binary diffs) . use-git-am () <> <> . use-git . options ( ) patch. (Extra data sources) type "extra-data" filename () . url () . sha256 () sha256 . size () . installed-size () (). (BUILD ENVIRONMENT) (sandbox) . . build-args ( flatpak-builder --sandbox ). (Filesystem) build/$modulename-$count ( .flatpak-builder/ ) . (symlink) build/$modulename . (reproducible builds) /run/build/$modulename ( /run/build-runtime/$modulename ) /run/active-build .. (mount) . . . /app . /usr /app ( ) /usr ( ) . ( ) SDK /usr SDK /app . . (Environment) : FLATPAK_ID . FLATPAK_ARCH . FLATPAK_DEST . /app . FLATPAK_BUILDER_N_JOBS flatpak-builder make -j . ncpus . FLATPAK_BUILDER_BUILDDIR . /run/build/$MODULE . PATH /app/bin:/usr/bin LD_LIBRARY_PATH /app/lib PKG_CONFIG_PATH /app/lib/pkgconfig:/app/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig ACLOCAL_PATH /app/share/aclocal C_INCLUDE_PATH /app/include CPLUS_INCLUDE_PATH /app/include LDFLAGS -L/app/lib LC_ALL en_US.utf8 (Permissions) --allow=devel --allow=multiarch . (syscall filtering) . . (EXAMPLES) $ flatpak-builder my-app-dir manifest.json : { "id": "org.test.TestApp", "runtime": "org.freedesktop.Platform", "runtime-version": "1.2", "sdk": "org.freedesktop.Sdk", "command": "test", "clean": [ "/include", "*.la" ], "build-options" : { "cflags": "-O2 -g", "cxxflags": "-O2 -g", "env": { "V": "1" }, "arch": { "x86_64": { "cflags": "-O3 -g", } } }, "modules": [ { "name": "pygobject", "config-opts": [ "--disable-introspection" ], "sources": [ { "type": "archive", "url": "http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-2.28.6.tar.xz", "sha256": "fb8a1d4f665130a125011659bd347c7339c944232163dbb9a34fd0686577adb8" }, { "type": "patch", "path": "required-pygobject-fix.patch" }, { "type": "file", "path": "pygobject-extra-file", "dest-filename": "extra-file" } ] }, { "name": "babl", "build-options" : { "cxxflags": "-O2 -g -std=c++11" }, "cleanup": [ "/bin" ], "sources": [ { "type": "git", "url": "https://gitlab.gnome.org/GNOME/babl.git" } ] }, { "name": "testapp", "sources": [ { "type": "bzr", "url": "lp:testapp" } ] } ] } (SEE ALSO) flatpak-builder(1) flatpak FLATPAK MANIFEST(5)