{
 "app_id": "io.github.ptitSeb.hydracastlelabyrinth",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.ptitSeb.hydracastlelabyrinth/master/io.github.ptitSeb.hydracastlelabyrinth.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:12:01.771639+00:00",
 "manifest": {
  "app-id": "io.github.ptitSeb.hydracastlelabyrinth",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "io.github.ptitSeb.hydracastlelabyrinth.sh",
  "finish-args": [
   "--device=all",
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio"
  ],
  "modules": [
   "shared-modules/SDL2/SDL2_mixer.json",
   {
    "name": "hcl",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DUSE_SDL2=ON"
    ],
    "post-install": [
     "install -Dm755 ${FLATPAK_ID}.sh -t /app/bin/",
     "desktop-file-edit --set-key=Exec --set-value=\"${FLATPAK_ID}.sh\" /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 ${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}-fullscreen.desktop",
     "desktop-file-edit --set-name=\"Hydra Castle Labyrinth (Fullscreen)\" /app/share/applications/${FLATPAK_ID}-fullscreen.desktop",
     "desktop-file-edit --set-key=Exec --set-value=\"${FLATPAK_ID}.sh -d\" /app/share/applications/${FLATPAK_ID}-fullscreen.desktop"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ptitSeb/hydracastlelabyrinth.git",
      "commit": "229369c222f8604530f5e06f795b4505ef21d439",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "paths": [
       "hcl-redirect_user_data.patch",
       "fix-appdata.patch"
      ]
     },
     {
      "type": "script",
      "dest-filename": "io.github.ptitSeb.hydracastlelabyrinth.sh",
      "commands": [
       "cd /app",
       "./hcl \"$@\""
      ]
     }
    ]
   }
  ]
 }
}