{
 "app_id": "org.flatpak.Builder",
 "source_url": "https://raw.githubusercontent.com/flathub/org.flatpak.Builder/master/org.flatpak.Builder.json",
 "runtime": "org.freedesktop.Sdk",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--filesystem=/var/lib/flatpak",
  "--filesystem=host",
  "--filesystem=xdg-data/flatpak",
  "--allow=devel",
  "--talk-name=org.freedesktop.Flatpak"
 ],
 "module_count": 13,
 "fetched_at": "2026-09-20T12:23:50.192929+00:00",
 "manifest": {
  "app-id": "org.flatpak.Builder",
  "runtime": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "base": "org.flatpak.Builder.BaseApp",
  "base-version": "25.08",
  "command": "flatpak-builder-wrapper",
  "separate-locales": false,
  "finish-args": [
   "--require-version=1.0.0",
   "--allow=devel",
   "--talk-name=org.freedesktop.Flatpak",
   "--filesystem=host",
   "--share=network",
   "--filesystem=xdg-data/flatpak",
   "--filesystem=/var/lib/flatpak",
   "--env=GIT_CONFIG_NOSYSTEM=1"
  ],
  "cleanup": [
   "/include",
   "/etc",
   "/lib/pkgconfig",
   "/share/man",
   "/share/pkgconfig",
   "/share/zsh",
   "/share/fish",
   "/share/installed-tests",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "appstream",
    "buildsystem": "meson",
    "config-opts": [
     "--prefix=/app",
     "--libdir=lib",
     "-Ddocs=false",
     "-Dapidocs=false",
     "-Dgir=true",
     "-Dcompose=true",
     "-Dtests=false",
     "-Dinstalled_tests=false",
     "-Dbash-completion=false"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/appstream.git",
      "commit": "6c796ba8e624cc4a1aee4599fb06019adc21fc47"
     }
    ]
   },
   {
    "name": "flatpak",
    "buildsystem": "meson",
    "config-opts": [
     "--prefix=/app",
     "--libdir=lib",
     "-Ddocbook_docs=disabled",
     "-Dgtkdoc=disabled",
     "-Dman=disabled",
     "-Dtests=false",
     "-Dmalcontent=disabled",
     "-Dseccomp=disabled",
     "-Dsandboxed_triggers=false",
     "-Dsystem_helper=disabled",
     "-Dselinux_module=disabled",
     "-Dwayland_security_context=disabled",
     "-Dsystem_bubblewrap=bwrap",
     "-Dsystem_dbus_proxy=xdg-dbus-proxy",
     "-Dsystem_install_dir=/var/lib/flatpak"
    ],
    "cleanup": [
     "/etc/profile.d",
     "/lib/systemd",
     "/share/dbus-1/interfaces/org.freedesktop.*",
     "/share/dbus-1/services/org.freedesktop.*",
     "/share/gdm"
    ],
    "post-install": [
     "cp /usr/bin/update-mime-database /app/bin",
     "cp /usr/bin/update-desktop-database /app/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/flatpak.git",
      "commit": "198cc942a8ce38f8608d567cb845d3877d9b6e7f"
     }
    ]
   },
   {
    "name": "libyaml",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/yaml/libyaml/releases/download/0.2.5/yaml-0.2.5.tar.gz",
      "sha256": "c642ae9b75fee120b2d96c712538bd2cf283228d2337df2cf2988e3c02678ef4"
     }
    ]
   },
   {
    "name": "flatpak-builder",
    "buildsystem": "meson",
    "config-opts": [
     "--prefix=/app",
     "--libdir=lib",
     "-Ddocs=disabled",
     "-Dtests=false",
     "-Dinstalled_tests=false",
     "-Dfuse=2"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/flatpak-builder.git",
      "commit": "f4b28cc1b0d120d07bf32208b320bd004e10cc7c",
      "disable-submodules": true
     },
     {
      "type": "git",
      "url": "https://github.com/GNOME/libglnx.git",
      "commit": "ccea836b799256420788c463a638ded0636b1632",
      "dest": "subprojects/libglnx"
     }
    ]
   },
   {
    "name": "flat-manager-client",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/flat-manager-client-rust/cargo",
      "CARGO_NET_OFFLINE": "true"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml --verbose",
     "cargo build --offline --release --bin flat-manager-client",
     "install -Dm0755 target/release/flat-manager-client ${FLATPAK_DEST}/bin/flat-manager-client"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flatpak/flat-manager",
      "commit": "a2844c3014b9633a833dcb3c7c149446e17561a3"
     },
     "flat-manager-client-rust-deps.json",
     {
      "type": "inline",
      "dest": ".cargo",
      "dest-filename": "config.toml",
      "contents": "[source.crates-io]\nreplace-with = \"vendored-sources\"\n\n[source.vendored-sources]\ndirectory = \"cargo/vendor\"\n"
     }
    ]
   },
   {
    "name": "python3-poetry-core",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} \"poetry-core>=1.0.0\" --no-build-isolation"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://files.pythonhosted.org/packages/d2/f1/fb218aebd29bca5c506230201c346881ae9b43de7bbb21a68dc648e972b3/poetry_core-2.1.3-py3-none-any.whl",
      "sha256": "2c704f05016698a54ca1d327f46ce2426d72eaca6ff614132c8477c292266771"
     }
    ]
   },
   {
    "name": "flatpak-builder-tools",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm0755 cargo/flatpak-cargo-generator.py ${FLATPAK_DEST}/bin/flatpak-cargo-generator",
     "install -Dm0755 gradle/flatpak-gradle-generator.py ${FLATPAK_DEST}/bin/flatpak-gradle-generator",
     "install -Dm0755 pip/flatpak-pip-generator.py ${FLATPAK_DEST}/bin/flatpak-pip-generator",
     "install -Dm0755 poetry/flatpak-poetry-generator.py ${FLATPAK_DEST}/bin/flatpak-poetry-generator",
     "install -Dm0755 flatpak-json2yaml.py ${FLATPAK_DEST}/bin/flatpak-json2yaml",
     "cd node && pip3 install --prefix=/app . --no-build-isolation"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flatpak/flatpak-builder-tools.git",
      "commit": "96e2fe8bf7d2e5791ca1bdce2dba373f1e27c425"
     }
    ]
   },
   {
    "name": "wrapper",
    "buildsystem": "simple",
    "build-commands": [
     "install -m a+rx flatpak-builder-wrapper.sh /app/bin/flatpak-builder-wrapper",
     "install -m a+rx flathub-builder.sh /app/bin/flathub-build"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "flatpak-builder-wrapper.sh",
      "commands": [
       "FLATPAK_BINARY=$(flatpak-spawn --host which flatpak 2> /dev/null)\nexport FLATPAK_BINARY\nexport FLATPAK_USER_DIR=$HOME/.local/share/flatpak\nexec flatpak-builder \"$@\"\n"
      ]
     },
     {
      "type": "file",
      "path": "flathub-builder.sh"
     }
    ]
   },
   {
    "name": "summary-files",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm0644 summary/beta.summary ${FLATPAK_DEST}/share/flathub/flathub-beta.summary",
     "install -Dm0644 summary/stable.summary ${FLATPAK_DEST}/share/flathub/flathub-stable.summary"
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/summary-files.git",
      "branch": "main"
     }
    ]
   },
   {
    "name": "flathub-repro-checker",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --verbose --exists-action=i --no-index --find-links=\"file://${PWD}\" --prefix=${FLATPAK_DEST} --no-build-isolation ."
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub-infra/flathub-repro-checker.git",
      "tag": "v0.2.1",
      "commit": "c573aec5e377e51f7170fdad6e159a5e8070bbdb",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   "flatpak-builder-lint-deps.json",
   {
    "name": "flatpak-builder-lint",
    "buildsystem": "simple",
    "build-commands": [
     "cp -vf ${FLATPAK_DEST}/share/flathub/flathub-beta.summary flatpak_builder_lint/staticfiles/flathub-beta.summary",
     "cp -vf ${FLATPAK_DEST}/share/flathub/flathub-stable.summary flatpak_builder_lint/staticfiles/flathub-stable.summary",
     "ver=$(dunamai from git --style pep440) && sed -i -E 's/^version\\s*=\\s*\".*\"/version = \"'$ver'\"/' pyproject.toml",
     "uv pip install -v --prefix=/app --no-index --offline --no-build-isolation --python /usr/bin/python ."
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/flathub/flatpak-builder-lint",
      "commit": "5181352815663b8d6ba4b08d5fa209e5bbc27b0e",
      "disable-shallow-clone": true
     }
    ]
   },
   {
    "name": "post-build",
    "buildsystem": "simple",
    "build-commands": [
     "rm -rvf /app/include",
     "rm -rvf /app/etc",
     "rm -rvf /app/lib/pkgconfig",
     "rm -rvf \"${FLATPAK_DEST}/share/metainfo/\"*.xml \"${FLATPAK_DEST}/share/appdata/\"*.xml",
     "install -Dm0644 \"${FLATPAK_ID}.metainfo.xml\" \"${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.metainfo.xml\""
    ],
    "sources": [
     {
      "type": "file",
      "path": "org.flatpak.Builder.metainfo.xml"
     }
    ]
   }
  ]
 }
}