{
 "app_id": "org.gitfourchette.gitfourchette",
 "source_url": "https://raw.githubusercontent.com/flathub/org.gitfourchette.gitfourchette/master/org.gitfourchette.gitfourchette.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.11",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=ssh-auth",
  "--socket=wayland",
  "--device=all",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=host",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings",
  "--talk-name=org.freedesktop.Flatpak",
  "--talk-name=org.freedesktop.FileManager1"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:14:46.134044+00:00",
 "manifest": {
  "app-id": "org.gitfourchette.gitfourchette",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.11",
  "sdk": "org.kde.Sdk",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "6.11",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_WEBENGINE=1"
   ]
  },
  "command": "gitfourchette",
  "finish-args": [
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--socket=ssh-auth",
   "--filesystem=host:rw",
   "--talk-name=org.freedesktop.FileManager1",
   "--talk-name=org.freedesktop.Flatpak",
   "--env=PYTHONPYCACHEPREFIX=",
   "--env=GIT_EXEC_PATH=/app/libexec/git-core",
   "--env=GIT_CONFIG_SYSTEM=/app/sandboxed-gitconfig",
   "--device=all"
  ],
  "modules": [
   "python3-packages.yml",
   {
    "name": "gitfourchette",
    "buildsystem": "simple",
    "build-commands": [
     "python update_resources.py --freeze pyqt6",
     "python -m pip install --verbose --no-index --prefix=${FLATPAK_DEST} '.[pyqt6,mfusepy]' --no-build-isolation"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jorio/gitfourchette.git",
      "commit": "9c30540d330e114f65493f89ee26db8b5a6c854d",
      "tag": "v1.11.0",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ],
    "post-install": [
     "install -D ./pkg/flatpak/org.gitfourchette.gitfourchette.desktop      ${FLATPAK_DEST}/share/applications/org.gitfourchette.gitfourchette.desktop",
     "install -D ./pkg/flatpak/org.gitfourchette.gitfourchette.png          ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/org.gitfourchette.gitfourchette.png",
     "install -D ./pkg/flatpak/org.gitfourchette.gitfourchette.metainfo.xml ${FLATPAK_DEST}/share/metainfo/org.gitfourchette.gitfourchette.metainfo.xml"
    ]
   },
   {
    "name": "git",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir ${FLATPAK_DEST}/libexec",
     "cp -av /usr/bin/git{,-cvsserver,-lfs,-receive-pack,-shell,-upload-archive,-upload-pack} ${FLATPAK_DEST}/bin",
     "cp -arv /usr/libexec/git-core ${FLATPAK_DEST}/libexec",
     "cp -arv /usr/share/git{-core,web} ${FLATPAK_DEST}/share",
     "install -D --mode=644 ./sandboxed-gitconfig ${FLATPAK_DEST}",
     "install -D --mode=755 ./gpg-on-host.sh ${FLATPAK_DEST}/bin"
    ],
    "sources": [
     {
      "type": "file",
      "path": "files/sandboxed-gitconfig"
     },
     {
      "type": "file",
      "path": "files/gpg-on-host.sh"
     }
    ]
   },
   {
    "name": "libfuse",
    "buildsystem": "meson",
    "config-opts": [
     "-Dexamples=false",
     "-Duseroot=false",
     "-Dtests=false",
     "-Dudevrulesdir=/tmp/",
     "-Dinitscriptdir="
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libfuse/libfuse/releases/download/fuse-3.18.2/fuse-3.18.2.tar.gz",
      "sha256": "f01de85717e20adf5f98aff324acd85dd73d61a5ca3834d573dcf0bd6e54a298"
     },
     {
      "type": "file",
      "path": "files/fusermount3-wrapper.sh"
     },
     {
      "type": "file",
      "path": "files/umount-wrapper.sh"
     }
    ],
    "post-install": [
     "install -D --mode=755 ${FLATPAK_BUILDER_BUILDDIR}/fusermount3-wrapper.sh ${FLATPAK_DEST}/bin/fusermount3",
     "install -D --mode=755 ${FLATPAK_BUILDER_BUILDDIR}/umount-wrapper.sh ${FLATPAK_DEST}/bin/umount"
    ]
   },
   {
    "name": "qadwaitadecorations",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_INSTALL_PREFIX=/app/lib/plugins",
     "-DQT_PLUGINS_DIR=/app/lib/plugins",
     "-DUSE_QT6=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FedoraQt/QAdwaitaDecorations.git",
      "commit": "440d4b00ad388be93c2da04b4f316d847c77d6bd"
     }
    ]
   }
  ]
 }
}