{
 "app_id": "com.github.iortcw.iortcw",
 "source_url": "https://raw.githubusercontent.com/flathub/com.github.iortcw.iortcw/master/com.github.iortcw.iortcw.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--device=dri"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:07:39.955321+00:00",
 "manifest": {
  "app-id": "com.github.iortcw.iortcw",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "26.08",
  "command": "iortcw.sh",
  "finish-args": [
   "--device=dri",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio"
  ],
  "cleanup": [
   "/include",
   "/lib/pkgconfig",
   "*.la",
   "*.a"
  ],
  "modules": [
   {
    "name": "iortcw-source",
    "buildsystem": "simple",
    "build-commands": [
     "cd /run/build/iortcw-source/SP/ && USE_INTERNAL_LIBS=0 COPYDIR=/app/bin/ make -j${FLATPAK_BUILDER_N_JOBS} copyfiles",
     "cd /run/build/iortcw-source/MP/ && USE_INTERNAL_LIBS=0 COPYDIR=/app/bin/ make -j${FLATPAK_BUILDER_N_JOBS} copyfiles"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/iortcw/iortcw/archive/1.51c.tar.gz",
      "sha256": "0f6c136db1e5c6115e044190655163b9784bbef9b0667ec2a8900abd79565e83",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 16908,
       "url-template": "https://github.com/iortcw/iortcw/archive/$version.tar.gz"
      }
     },
     {
      "type": "patch",
      "path": "fix-build-errors.patch"
     }
    ]
   },
   {
    "name": "iortcw-assets",
    "buildsystem": "simple",
    "build-commands": [
     "ls -la",
     "cp ./main/mp_bin0.pk3 /app/bin/main/",
     "cp ./main/mp_rend2_shaders0.pk3 /app/bin/main/",
     "cp ./main/sp_rend2_shaders0.pk3 /app/bin/main/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/iortcw/iortcw/releases/download/1.51c/iortcw-1.51c-linux-x86_64.zip",
      "sha256": "b322dcfd997c5e3e5a5b3f86d1b3525190b1fb5aee36fe4afa65a01b7cec845e",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 16908,
       "url-template": "https://github.com/iortcw/iortcw/releases/download/$version/iortcw-$version-linux-x86_64.zip"
      }
     }
    ]
   },
   {
    "name": "launcher",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm 744 iortcw.sh -t /app/bin",
     "install -Dm 744 iortcw_mp.sh -t /app/bin",
     "install -Dm 644 com.github.iortcw.iortcw.desktop -t /app/share/applications/",
     "install -Dm 644 com.github.iortcw.iortcw.mp.desktop -t /app/share/applications/",
     "install -Dm 644 com.github.iortcw.iortcw.metainfo.xml -t /app/share/metainfo/",
     "install -Dm 644 com.github.iortcw.iortcw.png -t /app/share/icons/hicolor/128x128/apps/",
     "install -Dm 644 com.github.iortcw.iortcw.svg -t /app/share/icons/hicolor/scalable/apps/"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "iortcw.sh",
      "only-arches": [
       "x86_64"
      ],
      "commands": [
       "/app/bin/iowolfsp.x86_64 +set fs_homepath ~/.var/app/com.github.iortcw.iortcw \"$@\""
      ]
     },
     {
      "type": "script",
      "dest-filename": "iortcw_mp.sh",
      "only-arches": [
       "x86_64"
      ],
      "commands": [
       "/app/bin/iowolfmp.x86_64 +set fs_homepath ~/.var/app/com.github.iortcw.iortcw \"$@\""
      ]
     },
     {
      "type": "script",
      "dest-filename": "iortcw.sh",
      "only-arches": [
       "aarch64"
      ],
      "commands": [
       "/app/bin/iowolfsp.aarch64 +set fs_homepath ~/.var/app/com.github.iortcw.iortcw \"$@\""
      ]
     },
     {
      "type": "script",
      "dest-filename": "iortcw_mp.sh",
      "only-arches": [
       "aarch64"
      ],
      "commands": [
       "/app/bin/iowolfmp.aarch64 +set fs_homepath ~/.var/app/com.github.iortcw.iortcw \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "com.github.iortcw.iortcw.desktop"
     },
     {
      "type": "file",
      "path": "com.github.iortcw.iortcw.mp.desktop"
     },
     {
      "type": "file",
      "path": "com.github.iortcw.iortcw.metainfo.xml"
     },
     {
      "type": "file",
      "path": "com.github.iortcw.iortcw.svg"
     },
     {
      "type": "file",
      "path": "com.github.iortcw.iortcw.png"
     }
    ]
   }
  ]
 }
}