{
 "app_id": "io.github.accessory.minus_games_gui",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.accessory.minus_games_gui/master/io.github.accessory.minus_games_gui.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=all",
  "--filesystem=~/.local/share/umu",
  "--filesystem=~/.var/app/org.openwinecomponents.umu.umu-launcher",
  "--filesystem=/run/media",
  "--filesystem=/mnt",
  "--filesystem=/run/udev:ro",
  "--filesystem=~/.local/share/Steam",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=com.canonical.Unity"
 ],
 "module_count": 23,
 "fetched_at": "2026-09-21T13:03:51.533200+00:00",
 "manifest": {
  "id": "io.github.accessory.minus_games_gui",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "run.sh",
  "separate-locales": false,
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "x-gl-version": "1.4",
  "x-gl-versions": "25.08;25.08-extra;1.4",
  "x-gl-merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d",
  "add-extensions": {
   "org.freedesktop.Platform.GL32": {
    "directory": "lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "25.08;25.08-extra;1.4",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false,
    "add-ld-path": "lib",
    "merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d",
    "download-if": "active-gl-driver",
    "enable-if": "active-gl-driver",
    "autoprune-unless": "active-gl-driver"
   },
   "org.freedesktop.Platform.GL32.Debug": {
    "directory": "lib/debug/lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "25.08;25.08-extra;1.4",
    "subdirectories": true,
    "no-autodownload": true,
    "merge-dirs": "vulkan/icd.d;glvnd/egl_vendor.d;OpenCL/vendors;lib/dri;lib/d3d;vulkan/explicit_layer.d;vulkan/implicit_layer.d",
    "enable-if": "active-gl-driver",
    "autoprune-unless": "active-gl-driver"
   },
   "org.freedesktop.Platform.VAAPI.Intel": {
    "version": "25.08",
    "directory": "lib/dri/intel-vaapi-driver",
    "autodelete": false,
    "no-autodownload": true,
    "download-if": "active-gl-driver",
    "enable-if": "active-gl-driver"
   },
   "com.valvesoftware.Steam.CompatibilityTool": {
    "subdirectories": true,
    "directory": "share/steam/compatibilitytools.d",
    "version": "stable",
    "versions": "stable;beta;test",
    "no-autodownload": true,
    "autodelete": true
   },
   "com.valvesoftware.Steam.Utility": {
    "subdirectories": true,
    "directory": "utils",
    "version": "stable",
    "versions": "stable;beta;test",
    "add-ld-path": "lib",
    "merge-dirs": "bin;lib/python3.10/site-packages;share/vulkan/explicit_layer.d;share/vulkan/implicit_layer.d;share/steam/compatibilitytools.d;",
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "finish-args": [
   "--allow=devel",
   "--allow=multiarch",
   "--device=all",
   "--allow=bluetooth",
   "--allow=per-app-dev-shm",
   "--env=PATH=/app/bin:/app/utils/bin:/usr/bin:/usr/lib/extensions/vulkan/MangoHud/bin:/usr/lib/extensions/vulkan/gamescope/bin:/usr/lib/extensions/vulkan/OBSVkCapture/bin",
   "--filesystem=~/.local/share/umu/:rw",
   "--filesystem=~/.local/share/Steam:rw",
   "--filesystem=~/.var/app/org.openwinecomponents.umu.umu-launcher:rw",
   "--env=DBUS_FATAL_WARNINGS=0",
   "--env=XDG_CONFIG_DIRS=/etc/xdg:/usr/lib/x86_64-linux-gnu/GL:/usr/lib/i386-linux-gnu/GL",
   "--system-talk-name=org.freedesktop.UDisks2",
   "--filesystem=/run/media",
   "--filesystem=/mnt",
   "--filesystem=/run/udev:ro",
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--share=network",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.Unity",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--env=XDG_DATA_DIRS=/app/share:/usr/lib/extensions/vulkan/share:/usr/share:/usr/share/runtime/share:/run/host/user-share:/run/host/share:/usr/lib/pressure-vessel/overrides/share"
  ],
  "modules": [
   {
    "name": "platform-bootstrap",
    "buildsystem": "simple",
    "build-commands": [
     "set -e\nmkdir -p /app/bin\nmkdir -p /app/lib/dri/intel-vaapi-driver\nmkdir -p /app/lib/i386-linux-gnu/GL\ninstall -Dm644 -t /app/etc ld.so.conf\nmkdir -p /app/lib/ffmpeg\nmkdir -p /app/share/steam/compatibilitytools.d\nmkdir -p /app/utils /app/share/vulkan\nln -srv /app/{utils/,}share/vulkan/explicit_layer.d\nln -srv /app/{utils/,}share/vulkan/implicit_layer.d\nmkdir -p /app/links/lib\nln -srv /app/lib /app/links/lib/x86_64-linux-gnu\n"
    ],
    "sources": [
     {
      "type": "inline",
      "dest-filename": "ld.so.conf",
      "contents": "# We just make any GL32 extension have higher priority\ninclude /run/flatpak/ld.so.conf.d/app-*-org.freedesktop.Platform.GL32.*.conf\n/app/lib32\n/app/lib/i386-linux-gnu\n"
     }
    ]
   },
   {
    "name": "python-flit-core",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
    ],
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/c4/e6/c1ac50fe3eebb38a155155711e6e864e254ce4b6e17fe2429b4c4d5b9e80/flit_core-3.9.0.tar.gz",
      "sha256": "72ad266176c4a3fcfab5f2930d76896059851240570ce9a98733b658cb786eba"
     }
    ]
   },
   {
    "name": "python-ninja",
    "buildsystem": "simple",
    "build-commands": [
     "python3 setup.py build -j${FLATPAK_BUILDER_N_JOBS} -DARCHIVE_DOWNLOAD_DIR=\"${FLATPAK_BUILDER_BUILDDIR}\"",
     "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
    ],
    "build-options": {
     "env": {
      "CMAKE_POLICY_VERSION_MINIMUM": "3.5"
     }
    },
    "cleanup": [
     "*"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/37/2c/d717d13a413d6f7579cdaa1e28e6e2c98de95461549b08d311c8a5bf4c51/ninja-1.11.1.1.tar.gz",
      "sha256": "9d793b08dd857e38d0b6ffe9e6b7145d7c485a42dcfea04905ca0cdb6017cc3c"
     },
     {
      "type": "file",
      "url": "https://github.com/Kitware/ninja/archive/v1.11.1.g95dee.kitware.jobserver-1.tar.gz",
      "sha256": "7ba84551f5b315b4270dc7c51adef5dff83a2154a3665a6c9744245c122dd0db"
     }
    ],
    "modules": [
     {
      "name": "python-skbuild",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/9e/e2/2e440c30e93fc5b505ee56169a4396b05e797a1daadb721aba429adbfd51/scikit-build-0.15.0.tar.gz",
        "sha256": "e723cd0f3489a042370b9ea988bbb9cfd7725e8b25b20ca1c7981821fcf65fb9"
       }
      ],
      "modules": [
       {
        "name": "python-distro",
        "buildsystem": "simple",
        "build-commands": [
         "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
        ],
        "cleanup": [
         "*"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://files.pythonhosted.org/packages/b5/7e/ddfbd640ac9a82e60718558a3de7d5988a7d4648385cf00318f60a8b073a/distro-1.7.0.tar.gz",
          "sha256": "151aeccf60c216402932b52e40ee477a939f8d58898927378a02abbe852c1c39"
         }
        ]
       },
       {
        "name": "python-setuptools-scm",
        "buildsystem": "simple",
        "build-commands": [
         "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
        ],
        "cleanup": [
         "*"
        ],
        "sources": [
         {
          "type": "archive",
          "url": "https://files.pythonhosted.org/packages/b9/19/7ae64b70b2429c48c3a7a4ed36f50f94687d3bfcd0ae2f152367b6410dff/setuptools_scm-8.3.1.tar.gz",
          "sha256": "3d555e92b75dacd037d32bafdf94f97af51ea29ae8c7b234cf94b7a5bd242a63"
         }
        ],
        "modules": [
         {
          "name": "python-typing-extensions",
          "buildsystem": "simple",
          "build-commands": [
           "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
          ],
          "cleanup": [
           "*"
          ],
          "sources": [
           {
            "type": "archive",
            "url": "https://files.pythonhosted.org/packages/9e/1d/d128169ff58c501059330f1ad96ed62b79114a2eb30b8238af63a2e27f70/typing_extensions-4.3.0.tar.gz",
            "sha256": "e6d2677a32f47fc7eb2795db1dd15c1f34eff616bcaf2cfb5e997f854fa1c4a6"
           }
          ]
         },
         {
          "name": "python-tomli",
          "buildsystem": "simple",
          "build-commands": [
           "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
          ],
          "cleanup": [
           "*"
          ],
          "sources": [
           {
            "type": "archive",
            "url": "https://files.pythonhosted.org/packages/c0/3f/d7af728f075fb08564c5949a9c95e44352e23dee646869fa104a3b2060a3/tomli-2.0.1.tar.gz",
            "sha256": "de526c12914f0c550d15924c62d72abc48d6fe7364aa87328337a31007fe8a4f"
           }
          ]
         }
        ]
       }
      ]
     }
    ]
   },
   {
    "name": "python-six",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/94/e7/b2c673351809dca68a0e064b6af791aa332cf192da575fd474ed7d6f16a2/six-1.17.0.tar.gz",
      "sha256": "ff70335d468e7eb6ec65b95b99d3a2836546063f63acc5171de367e834932a81"
     }
    ]
   },
   {
    "name": "python-xlib",
    "buildsystem": "simple",
    "build-commands": [
     "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://files.pythonhosted.org/packages/source/p/python-xlib/python-xlib-0.33.tar.gz",
      "sha256": "55af7906a2c75ce6cb280a584776080602444f75815a7aff4d287bb2d7018b32"
     }
    ]
   },
   {
    "name": "umu-run",
    "buildsystem": "simple",
    "build-commands": [
     "git submodule update --init --recursive\n./configure.sh --prefix=/app\nmake FLATPAK=xtrue install DESTDIR=/app\ncp -R /app/app/share/* /app/share/\ncp -R /app/usr/* /app/\nrm -Rf /app/app/\npip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" .\n"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Open-Wine-Components/umu-launcher.git",
      "tag": "1.4.0"
     }
    ],
    "modules": [
     {
      "name": "trove_classifiers",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/13/8e/15ba2980e2704edecc53d15506a5bfa6efb3b1cadc5e4df7dc277bc199f8/trove_classifiers-2025.2.18.16.tar.gz",
        "sha256": "b1ee2e1668589217d4edf506743e28b1834da128f8a122bad522c02d837006e1"
       }
      ]
     },
     {
      "name": "pathspec",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/ca/bc/f35b8446f4531a7cb215605d100cd88b7ac6f44ab3fc94870c120ab3adbf/pathspec-0.12.1.tar.gz",
        "sha256": "a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712"
       }
      ]
     },
     {
      "name": "pluggy",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/96/2d/02d4312c973c6050a18b314a5ad0b3210edb65a906f868e31c111dede4a6/pluggy-1.5.0.tar.gz",
        "sha256": "2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"
       }
      ]
     },
     {
      "name": "pyproject_hooks",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/c7/07/6f63dda440d4abb191b91dc383b472dae3dd9f37e4c1e4a5c3db150531c6/pyproject_hooks-1.1.0.tar.gz",
        "sha256": "4b37730834edbd6bd37f26ece6b44802fb1c1ee2ece0e54ddff8bfc06db86965"
       }
      ]
     },
     {
      "name": "python-build",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/ce/9e/2d725d2f7729c6e79ca62aeb926492abbc06e25910dd30139d60a68bcb19/build-1.2.1.tar.gz",
        "sha256": "526263f4870c26f26c433545579475377b2b7588b6f1eac76a001e873ae3e19d"
       }
      ]
     },
     {
      "name": "python-installer",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/05/18/ceeb4e3ab3aa54495775775b38ae42b10a92f42ce42dfa44da684289b8c8/installer-0.7.0.tar.gz",
        "sha256": "a26d3e3116289bb08216e0d0f7d925fcef0b0194eedfa0c944bcaaa106c4b631"
       }
      ]
     },
     {
      "name": "python-hatchling",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/8f/8a/cc1debe3514da292094f1c3a700e4ca25442489731ef7c0814358816bb03/hatchling-1.27.0.tar.gz",
        "sha256": "971c296d9819abb3811112fc52c7a9751c8d381898f36533bb16f9791e941fd6"
       }
      ]
     },
     {
      "name": "hatch-vcs",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [
       "*"
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/6b/b0/4cc743d38adbee9d57d786fa496ed1daadb17e48589b6da8fa55717a0746/hatch_vcs-0.5.0.tar.gz",
        "sha256": "0395fa126940340215090c344a2bf4e2a77bcbe7daab16f41b37b98c95809ff9"
       }
      ]
     },
     {
      "name": "filelock",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "cleanup": [],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/dc/9c/0b15fb47b464e1b663b1acd1253a062aa5feecb07d4e597daea542ebd2b5/filelock-3.17.0.tar.gz",
        "sha256": "ee4e77401ef576ebb38cd7f13b9b28893194acc20a8e68e18730ba9c0e54660e"
       }
      ]
     },
     {
      "name": "urllib3",
      "buildsystem": "simple",
      "build-commands": [
       "pip3 install --no-index --no-build-isolation --prefix=\"${FLATPAK_DEST}\" ."
      ],
      "sources": [
       {
        "type": "archive",
        "url": "https://files.pythonhosted.org/packages/aa/63/e53da845320b757bf29ef6a9062f5c669fe997973f966045cb019c3f4b66/urllib3-2.3.0.tar.gz",
        "sha256": "f8c5449b3cf0861679ce7e0503c7b44b5ec981bec0d1d3795a07f1ba96f0204d"
       }
      ]
     }
    ]
   },
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-examples=false",
     "-Dwith-util=false",
     "-Dwith-sd-bus-provider=no-daemon"
    ],
    "post-install": [
     "install -Dm0775 -t /app/bin ../data/gamemoderun"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/FeralInteractive/gamemode/releases/download/1.8.2/gamemode-1.8.2.tar.xz",
      "sha256": "98cd1bcf6101c92fe87f974c7776af23c7e18f29ce6ecfe572b1c39dcde5c181",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 17410,
       "stable-only": true,
       "url-template": "https://github.com/FeralInteractive/gamemode/releases/download/$version/gamemode-$version.tar.xz"
      }
     }
    ]
   },
   {
    "name": "minus_games_gui",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_HOME": "/run/build/minus_games_gui/cargo"
     }
    },
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml",
     "cargo --offline build --release --bin minus_games_gui",
     "sed -i 's/Exec=minus_games_gui/Exec=\\/app\\/bin\\/run.sh/' other/assets/gui/io.github.accessory.minus_games_gui.desktop",
     "install -Dm755 target/release/minus_games_gui /app/bin/minus_games_gui",
     "install -Dm644 other/assets/common/MinusGamesV2.svg /app/share/icons/hicolor/scalable/apps/io.github.accessory.minus_games_gui.svg",
     "install -Dm644 other/assets/gui/io.github.accessory.minus_games_gui.desktop /app/share/applications/io.github.accessory.minus_games_gui.desktop",
     "install -Dm644 other/assets/gui/io.github.accessory.minus_games_gui.metainfo.xml /app/share/metainfo/io.github.accessory.minus_games_gui.metainfo.xml",
     "install -Dm755 run.sh /app/bin/run.sh"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Accessory/minus_games/",
      "commit": "5c0c24e3d358d3c4696d42e528718643ce6cd140"
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "set -e",
       "export WINEPREFIX=$XDG_DATA_HOME/minus_games_gui/wine/",
       "export PROTONPATH=GE-Proton",
       "export MINUS_GAMES_WINE_EXE=/app/bin/umu-run",
       "export MINUS_GAMES_SERVER_URL=\"http://localhost:8415\"",
       "export MINUS_GAMES_CLIENT_GAMES_FOLDER=\"$XDG_DATA_HOME/minus_games_gui/games\"",
       "export MINUS_GAMES_CLIENT_FOLDER=\"$XDG_DATA_HOME/minus_games_gui/client\"",
       "export MINUS_GAMES_WINE_PREFIX=$XDG_DATA_HOME/minus_games_gui/wine/",
       "exec /app/bin/minus_games_gui",
       "exit $?"
      ]
     }
    ]
   }
  ]
 }
}