{
 "app_id": "io.itch.itch",
 "source_url": "https://raw.githubusercontent.com/flathub/io.itch.itch/master/io.itch.itch.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--own-name=org.kde.*"
 ],
 "module_count": 6,
 "fetched_at": "2026-09-21T13:15:37.325084+00:00",
 "manifest": {
  "app-id": "io.itch.itch",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.winehq.Wine",
  "base-version": "stable-25.08",
  "command": "itch-run",
  "separate-locales": false,
  "finish-args": [
   "--allow=multiarch",
   "--device=all",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--own-name=org.kde.*",
   "--env=PATH=/app/bin:/usr/bin:/usr/lib/extensions/vulkan/gamescope/bin",
   "--env=WINEPREFIX=/var/data/wine",
   "--env=WINEDLLOVERRIDES=mscoree,mshtml='",
   "--env=WINEDLLPATH=/app/dlls/lib32:/app/dlls/lib:/app/lib32/wine/wined3d:/app/lib/wine/wined3d",
   "--env=LD_LIBRARY_PATH=/app/lib:/app/lib32",
   "--env=GST_PLUGIN_SYSTEM_PATH=/app/lib/gstreamer-1.0:/usr/lib/x86_64-linux-gnu/gstreamer-1.0:/app/lib32/gstreamer-1.0:/usr/lib/i386-linux-gnu/gstreamer-1.0",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--persist=.wine",
   "--persist=.wine64"
  ],
  "inherit-extensions": [
   "org.freedesktop.Platform.GL32",
   "org.freedesktop.Platform.Compat.i386",
   "org.freedesktop.Platform.codecs_extra.i386",
   "org.winehq.Wine.gecko",
   "org.winehq.Wine.mono"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.Compat.i386.Debug": {
    "directory": "lib/debug/lib/i386-linux-gnu",
    "no-autodownload": true,
    "version": "26.08"
   }
  },
  "modules": [
   "shared-modules/glu/glu-9.json",
   {
    "name": "zypak",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/refi64/zypak",
      "tag": "v2025.09",
      "commit": "693a71c5ffa80ec9c9ce2ae03b1ccc493c698e53",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "firejail",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/netblue30/firejail.git",
      "tag": "0.9.80",
      "commit": "13604ce28418d1584a5ffc8eca4ac85522fef3b6",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "gamescope",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir -p /app/utils/gamescope"
    ]
   },
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-examples=false",
     "-Dwith-util=false",
     "-Dwith-sd-bus-provider=no-daemon"
    ],
    "post-install": [
     "install -Dm755 ../data/gamemoderun -t /app/bin"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FeralInteractive/gamemode.git",
      "tag": "1.8.2",
      "commit": "c54d6d4243b0dd0afcb49f2c9836d432da171a2b",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     }
    ]
   },
   {
    "name": "itch",
    "buildsystem": "simple",
    "build-commands": [
     "install -D -t \"${FLATPAK_DEST}/share/applications/\" ./io.itch.itch.desktop",
     "install -D -t \"${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/\" ./io.itch.itch.svg",
     "install -D -t \"${FLATPAK_DEST}/share/metainfo/\" ./io.itch.itch.metainfo.xml",
     "mv * /app/bin/"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/itchio/press-kit/304cdedcd99e6c0e8cd8d5b08b9bfe773b679579/logos/app-icon.svg",
      "dest-filename": "io.itch.itch.svg",
      "sha256": "eaf979c6c7c315a7004971bc82bbced24c06d7d4fff7f518d7cfd83863ea4285"
     },
     {
      "type": "file",
      "path": "io.itch.itch.desktop"
     },
     {
      "type": "file",
      "path": "io.itch.itch.metainfo.xml"
     },
     {
      "type": "file",
      "path": "itch-run"
     },
     {
      "type": "archive",
      "strip-components": 0,
      "archive-type": "zip",
      "url": "https://broth.itch.zone/itch/linux-amd64/26.20.0/archive/default",
      "sha256": "abba4743999de78012f8b7c845019a025eaeb05bf641203c8e07003a7de6ac0e",
      "x-checker-data": {
       "type": "html",
       "url": "https://broth.itch.zone/itch/linux-amd64/LATEST",
       "version-pattern": "([\\d.]+)",
       "url-template": "https://broth.itch.zone/itch/linux-amd64/$version/archive/default"
      }
     }
    ]
   }
  ]
 }
}