{
 "app_id": "io.bitbucket.tortoisehg",
 "source_url": "https://raw.githubusercontent.com/TorrSamaho/io.bitbucket.tortoisehg/main/io.bitbucket.tortoisehg.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.8",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--device=dri",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=ssh-auth",
  "--share=network",
  "--share=ipc",
  "--filesystem=home:rw",
  "--talk-name=org.freedesktop.Flatpak",
  "--filesystem=/tmp"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-20T12:58:50.060346+00:00",
 "manifest": {
  "app-id": "io.bitbucket.tortoisehg",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.8",
  "sdk": "org.kde.Sdk",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "6.8",
  "command": "thg",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "build-options": {
   "env": [
    "BASEAPP_REMOVE_PYWEBENGINE=1"
   ]
  },
  "finish-args": [
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=ssh-auth",
   "--share=network",
   "--share=ipc",
   "--filesystem=home:rw",
   "--talk-name=org.freedesktop.Flatpak",
   "--filesystem=/tmp"
  ],
  "modules": [
   {
    "name": "qscintilla-pyqt6",
    "buildsystem": "simple",
    "build-commands": [
     "sip-install --target-dir=/app/lib/python/site-packages/ --verbose --debug"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/e8/06/799c04a51f6cc2111f0cfb090ed4938fc044c5c12d1d9671280e235f2f2e/PyQt6_QScintilla-2.14.1.tar.gz",
      "sha256": "8849a4a9847bbf3698d0c1cf47e6d08552a49a66928543a73f10d6dcba617d10",
      "x-checker-data": {
       "type": "pypi",
       "name": "PyQt6-QScintilla",
       "packagetype": "sdist"
      }
     }
    ]
   },
   "python3-mercurial.json",
   "python3-hg-evolve.json",
   "python3-iniparse.json",
   {
    "name": "tortoisehg",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --prefix=${FLATPAK_DEST} ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.mercurial-scm.org/release/tortoisehg/targz/tortoisehg-7.0.1.tar.gz",
      "sha256": "ac20cb676a690f763bd5cdf550d8abff5a56d5004956230ff4976826259fd279"
     },
     {
      "type": "file",
      "path": "io.bitbucket.tortoisehg.metainfo.xml"
     }
    ],
    "post-install": [
     "(cd icons && find . -type f -exec install -Dm 755 \"{}\" \"${FLATPAK_DEST}/share/icons/hicolor/{}\" \\;)",
     "install -Dm644 icons/svg/thg_logo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "sed -e \"s|Icon=thg_logo|Icon=${FLATPAK_ID}|g\" contrib/thg.desktop > ${FLATPAK_ID}.desktop",
     "install -Dm644 ${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo"
    ]
   }
  ]
 }
}