{
 "app_id": "tw.ddnet.ddnet",
 "source_url": "https://raw.githubusercontent.com/flathub/tw.ddnet.ddnet/master/tw.ddnet.ddnet.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 5,
 "fetched_at": "2026-09-17T16:17:35.764078+00:00",
 "manifest": {
  "id": "tw.ddnet.ddnet",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "DDNet",
  "finish-args": [
   "--device=dri",
   "--persist=.teeworlds",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.Notifications"
  ],
  "rename-desktop-file": "ddnet.desktop",
  "rename-icon": "ddnet",
  "cleanup": [
   "/include",
   "/lib/girepository-1.0",
   "/lib/pkgconfig",
   "/share/gir-1.0",
   "/share/doc"
  ],
  "modules": [
   {
    "name": "ddnet",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_NET_OFFLINE": "true",
      "CARGO_HOME": "/run/build/ddnet/cargo"
     }
    },
    "config-opts": [
     "-GNinja",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DAUTOUPDATE=OFF"
    ],
    "post-install": [
     "install -Dm 644 -t /app/share/metainfo tw.ddnet.ddnet.metainfo.xml"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ddnet/ddnet.git",
      "tag": "20.0",
      "commit": "a5a61806e434ef22141b622db989087fbba8ed21",
      "disable-submodules": true,
      "disable-fsckobjects": true,
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     {
      "type": "shell",
      "commands": [
       "rm -rf ddnet-libs"
      ]
     },
     {
      "type": "patch",
      "path": "ddnet-set-data-dir.patch"
     },
     {
      "type": "patch",
      "path": "cargo-use-vendored-sources.patch"
     },
     {
      "type": "file",
      "path": "tw.ddnet.ddnet.metainfo.xml"
     },
     "cargo-sources.json"
    ],
    "modules": [
     "shared-modules/glew/glew.json",
     "shared-modules/glu/glu-9.json",
     {
      "name": "x264",
      "config-opts": [
       "--disable-cli",
       "--enable-shared"
      ],
      "sources": [
       {
        "type": "git",
        "url": "https://code.videolan.org/videolan/x264.git",
        "commit": "baee400fa9ced6f5481a728138fed6e867b0ff7f"
       }
      ]
     },
     {
      "name": "spirv-tools",
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "git",
        "url": "https://github.com/KhronosGroup/SPIRV-Tools.git",
        "tag": "vulkan-sdk-1.4.357.0",
        "commit": "9a49b0883b9b635689a85b5647dbfcb223268151",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^vulkan-sdk-([\\d.]+)$"
        }
       },
       {
        "type": "git",
        "url": "https://github.com/KhronosGroup/SPIRV-Headers.git",
        "tag": "vulkan-sdk-1.4.357.0",
        "commit": "29981f65241605e08b0ede4cfeb999fe3b723c6a",
        "dest": "external/spirv-headers",
        "x-checker-data": {
         "type": "git",
         "tag-pattern": "^vulkan-sdk-([\\d.]+)$"
        }
       }
      ],
      "cleanup": [
       "/bin",
       "/include",
       "/lib"
      ]
     }
    ]
   }
  ]
 }
}