{
 "app_id": "ch.theologeek.Manuskript",
 "source_url": "https://raw.githubusercontent.com/flathub/ch.theologeek.Manuskript/master/ch.theologeek.Manuskript.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=x11",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:06:42.467289+00:00",
 "manifest": {
  "app-id": "ch.theologeek.Manuskript",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "base": "com.riverbankcomputing.PyQt.BaseApp",
  "base-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "add-extensions": {
   "org.freedesktop.Sdk.Extension.texlive": {
    "directory": "texlive",
    "subdirectories": true,
    "autodelete": false,
    "no-autodownload": true,
    "version": "25.08"
   }
  },
  "command": "manuskript",
  "cleanup-commands": [
   "/app/cleanup-BaseApp.sh"
  ],
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--device=dri",
   "--filesystem=home",
   "--env=QT_QPA_PLATFORM=xcb",
   "--env=PATH=/usr/bin:/app/bin:/app/texlive/bin:/app/texlive/bin/x86_64-linux:/app/texlive/bin/aarch64-linux",
   "--env=QTWEBENGINEPROCESS_PATH=/app/bin/QtWebEngineProcess"
  ],
  "cleanup": [
   "/lib/pkgconfig",
   "/lib/cmake",
   "/include",
   "/lib/manuskript/bin",
   "/lib/manuskript/package",
   "/lib/manuskript/snap",
   "/lib/manuskript/util",
   "/lib/manuskript/.github",
   "/lib/manuskript/icons/Manuskript",
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   "python3-modules.json",
   {
    "name": "enchant",
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/rrthomas/enchant/releases/download/v2.8.21/enchant-2.8.21.tar.gz",
      "sha256": "dd2a762697c463148a8f59867089a5ebf2dd1449d869f93764b76c12bcf8acc0",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/rrthomas/enchant/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name==\"enchant-\" + $version + \".tar.gz\") | .browser_download_url"
      }
     }
    ]
   },
   {
    "name": "pandoc",
    "buildsystem": "simple",
    "build-commands": [
     "cp -R . /app/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/jgm/pandoc/releases/download/3.11/pandoc-3.11-linux-amd64.tar.gz",
      "sha256": "37edb3bbcf722f921a009941bf5874e2e0c09263226c9b4a2d980788cb062ab6",
      "only-arches": [
       "x86_64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/jgm/pandoc/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"pandoc-\" + $version + \"-linux-amd64.tar.gz\") | .browser_download_url"
      }
     },
     {
      "type": "archive",
      "url": "https://github.com/jgm/pandoc/releases/download/3.11/pandoc-3.11-linux-arm64.tar.gz",
      "sha256": "56ed5566ec41d22ec9ee0704e6ac0b98ba102e92384efd5306173a22d314c79a",
      "only-arches": [
       "aarch64"
      ],
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/jgm/pandoc/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name==\"pandoc-\" + $version + \"-linux-arm64.tar.gz\") | .browser_download_url"
      }
     }
    ],
    "modules": [
     {
      "name": "texlive-extension",
      "buildsystem": "simple",
      "build-commands": [
       "mkdir /app/texlive"
      ]
     }
    ]
   },
   {
    "name": "manuskript",
    "buildsystem": "simple",
    "build-commands": [
     "install -d  /app/lib/manuskript",
     "cp -R . /app/lib/manuskript",
     "install -D -m755 package/flatpak/manuskript.py /app/bin/manuskript"
    ],
    "post-install": [
     "install -D -m644 icons/Manuskript/manuskript.svg /app/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -D -m644 resources/${FLATPAK_ID}.desktop -t /app/share/applications",
     "install -D -m644 resources/${FLATPAK_ID}.appdata.xml -t /app/share/appdata"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/olivierkes/manuskript/archive/refs/tags/0.17.0.tar.gz",
      "sha256": "a31d8918b28bcb0f42a614fdc6e2732eca1cd276b9ed1664d1b9cad2e66393ab",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/olivierkes/manuskript/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tag_name | sub(\"^\"; \"https://github.com/olivierkes/manuskript/archive/refs/tags/\") | sub(\"$\"; \".tar.gz\")",
       "is-main-source": true
      }
     }
    ]
   }
  ]
 }
}