{
 "app_id": "com.gitlab.coringao.JAG",
 "source_url": "https://raw.githubusercontent.com/flathub/com.gitlab.coringao.JAG/master/com.gitlab.coringao.JAG.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "5.15-25.08",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:07:55.447341+00:00",
 "manifest": {
  "app-id": "com.gitlab.coringao.JAG",
  "runtime": "org.kde.Platform",
  "runtime-version": "5.15-25.08",
  "sdk": "org.kde.Sdk",
  "command": "jag",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--persist=.jag"
  ],
  "modules": [
   {
    "name": "JAG",
    "buildsystem": "qmake",
    "sources": [
     {
      "type": "git",
      "url": "https://gitlab.com/coringao/jag.git",
      "tag": "0.3.8",
      "commit": "0f041df74c644a72690fb1d3e7b3d2bd8e22266e",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     {
      "type": "shell",
      "commands": [
       "sed -i 's#target.path = /usr/games/#target.path = /app/bin/#' game.pro",
       "sed -i 's#datas.path = /usr/share/games/#datas.path = /app/share/#' game.pro",
       "sed -i 's#resourcePath = \"/usr/share/games/jag/data/\"#resourcePath = \"/app/share/jag/data/\"#' src/main.cpp"
      ]
     },
     {
      "type": "file",
      "path": "jag.appdata.xml"
     }
    ],
    "post-install": [
     "install -Dm 0644 src/jag.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID} ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 0644 src/images/icon256.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/${FLATPAK_ID}.png",
     "install -Dm 0644 jag.appdata.xml ${FLATPAK_DEST}/share/appdata/${FLATPAK_ID}.appdata.xml"
    ]
   }
  ]
 }
}