{
 "app_id": "io.github.ihhub.Fheroes2",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.ihhub.Fheroes2/master/io.github.ihhub.Fheroes2.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--talk-name=org.freedesktop.FileManager1.*"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:11:19.994367+00:00",
 "manifest": {
  "app-id": "io.github.ihhub.Fheroes2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "fheroes2.sh",
  "rename-appdata-file": "fheroes2.metainfo.xml",
  "rename-desktop-file": "fheroes2.desktop",
  "rename-icon": "fheroes2",
  "copy-icon": true,
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.FileManager1.*",
   "--share=network"
  ],
  "cleanup": [
   "/share/doc",
   "/share/man"
  ],
  "modules": [
   "innoextract.yml",
   {
    "name": "bchunk",
    "buildsystem": "simple",
    "build-commands": [
     "make",
     "install -Dm 744 bchunk -t /app/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/hessu/bchunk",
      "tag": "release/1.2.2",
      "commit": "0c7009d1d2be1cc12edebf926010f417069b6211",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^.*?([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "fheroes2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DSDL2MAIN_LIBRARY="
    ],
    "post-install": [
     "desktop-file-edit --set-key=Exec --set-value=fheroes2.sh ${FLATPAK_DEST}/share/applications/fheroes2.desktop",
     "install -Dm 744 fheroes2.sh -t /app/bin",
     "install -Dm 644 files/timidity/timidity.cfg -t ${FLATPAK_DEST}/etc",
     "install -Dm 644 files/timidity/instruments/* -t ${FLATPAK_DEST}/etc/instruments"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ihhub/fheroes2",
      "tag": "1.1.17",
      "commit": "2685c2188b541660f1ce261b554c3e92f79b1775",
      "x-checker-data": {
       "is-main-source": true,
       "type": "git"
      }
     },
     {
      "type": "file",
      "path": "fheroes2.sh",
      "dest-filename": "fheroes2.sh"
     }
    ]
   }
  ]
 }
}