{
 "app_id": "io.github.cortex_command_community.Cortex-Command-Community-Project",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.cortex_command_community.Cortex-Command-Community-Project/master/io.github.cortex_command_community.Cortex-Command-Community-Project.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--device=all"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:10:45.056548+00:00",
 "manifest": {
  "app-id": "io.github.cortex_command_community.Cortex-Command-Community-Project",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "CortexCommand",
  "rename-desktop-file": "CortexCommand.desktop",
  "rename-icon": "cccp",
  "finish-args": [
   "--device=all",
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "/lib/cmake",
   "/share/doc",
   "*.xpm",
   "*.a"
  ],
  "modules": [
   "shared-modules/luajit/luajit.json",
   "shared-modules/SDL2/SDL2_image.json",
   {
    "name": "minizip",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DMZ_COMPAT=ON",
     "-DBUILD_SHARED_LIBS=ON"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/zlib-ng/minizip-ng.git",
      "tag": "4.0.7",
      "commit": "fe5fedc365f7824ada0cf9a84fb79b30d5fc97a8"
     }
    ]
   },
   {
    "name": "oneTBB",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DTBB_STRICT=OFF",
     "-DTBB_TEST=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/oneapi-src/oneTBB.git",
      "tag": "v2021.13.0",
      "commit": "1c4c93fc5398c4a1acb3492c02db4699f3048dea"
     }
    ]
   },
   {
    "name": "cortexcommand",
    "buildsystem": "meson",
    "config-opts": [
     "-Duse_pch=enabled",
     "-Dinstall_fmod=true",
     "-Dinstall_data=true",
     "-Dinstall_runner=true"
    ],
    "post-install": [
     "install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/cccp.svg -t ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/",
     "install -Dm644 ${FLATPAK_BUILDER_BUILDDIR}/${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/cortex-command-community/Cortex-Command-Community-Project",
      "tag": "v6.2.2",
      "commit": "1f67f87a420c4d63c6e9c531d55889021340ad66"
     },
     {
      "type": "patch",
      "path": "runner.patch"
     },
     {
      "type": "patch",
      "path": "luabind-error-check.patch"
     },
     {
      "type": "patch",
      "path": "supportedversion.patch"
     },
     {
      "type": "patch",
      "path": "server-crash.patch"
     },
     {
      "type": "file",
      "dest-filename": "cccp.svg",
      "url": "https://raw.githubusercontent.com/cortex-command-community/Cortex-Command-Community-Project/f64e3a0177723854220acdc60b37650809087920/Resources/io.github.cortex_command_community.Cortex-Command-Community-Project.svg",
      "sha256": "58c8d359a8547be65406627340ecf767c8e79887f79a040db1b02c5a720f5268"
     },
     {
      "type": "file",
      "dest-filename": "io.github.cortex_command_community.Cortex-Command-Community-Project.metainfo.xml",
      "url": "https://raw.githubusercontent.com/cortex-command-community/Cortex-Command-Community-Project/f64e3a0177723854220acdc60b37650809087920/Resources/io.github.cortex_command_community.Cortex-Command-Community-Project.metainfo.xml",
      "sha256": "930f944c6d5c1a6da1804f735b262a327240d2e3003a9632e576b13426549362"
     }
    ]
   }
  ]
 }
}