{
 "app_id": "xyz.hyperplay.HyperPlay",
 "source_url": "https://raw.githubusercontent.com/flathub/xyz.hyperplay.HyperPlay/master/xyz.hyperplay.HyperPlay.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "23.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=~/.steam/steam",
  "--filesystem=/mnt",
  "--filesystem=~/.local/share/Steam",
  "--filesystem=~/.var/app/com.valvesoftware.Steam",
  "--filesystem=/run/udev:ro",
  "--filesystem=~/.config/heroic",
  "--filesystem=/run/media",
  "--filesystem=/media",
  "--filesystem=~/.local/share/lutris",
  "--filesystem=xdg-documents",
  "--filesystem=~/.local/share/applications",
  "--filesystem=~/Games/HyperPlay:create",
  "--filesystem=xdg-run/gamescope-0",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-desktop",
  "--allow=devel",
  "--allow=multiarch",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=com.canonical.Unity"
 ],
 "module_count": 19,
 "fetched_at": "2026-09-17T17:22:36.421984+00:00",
 "manifest": {
  "id": "xyz.hyperplay.HyperPlay",
  "sdk": "org.freedesktop.Sdk",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "23.08",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "23.08",
  "command": "hyperplay-run",
  "separate-locales": false,
  "cleanup": [
   "/share/docs",
   "/share/man"
  ],
  "sdk-extensions": [
   "org.freedesktop.Sdk.Compat.i386",
   "org.freedesktop.Sdk.Extension.toolchain-i386"
  ],
  "finish-args": [
   "--allow=devel",
   "--allow=multiarch",
   "--device=all",
   "--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:/app/bin/hyperplay/resources/app.asar.unpacked/build/bin/linux",
   "--env=LD_LIBRARY_PATH=/usr/lib/extensions/vulkan/gamescope/lib",
   "--filesystem=~/.local/share/lutris:rw",
   "--filesystem=~/.config/heroic:rw",
   "--filesystem=~/.local/share/applications:rw",
   "--filesystem=~/.local/share/Steam:rw",
   "--filesystem=~/.steam/steam:rw",
   "--filesystem=~/Games/HyperPlay:create",
   "--filesystem=~/.var/app/com.valvesoftware.Steam:rw",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-desktop",
   "--filesystem=xdg-run/gamescope-0:rw",
   "--filesystem=/run/media",
   "--filesystem=/mnt",
   "--filesystem=/media",
   "--filesystem=/run/udev:ro",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--persist=.",
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=com.canonical.Unity",
   "--env=XDG_CURRENT_DESKTOP=KDE",
   "--env=ELECTRON_TRASH=gio"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.Compat.i386": {
    "directory": "lib/i386-linux-gnu",
    "version": "23.08"
   },
   "org.freedesktop.Platform.Compat.i386.Debug": {
    "directory": "lib/debug/lib/i386-linux-gnu",
    "version": "23.08",
    "no-autodownload": true
   },
   "org.freedesktop.Platform.GL32": {
    "directory": "lib/i386-linux-gnu/GL",
    "version": "1.4",
    "versions": "23.08;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"
   },
   "x-compat-i386-opts": {
    "prepend-pkg-config-path": "/app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig",
    "ldflags": "-L/app/lib32",
    "append-path": "/usr/lib/sdk/toolchain-i386/bin",
    "env": {
     "CC": "i686-unknown-linux-gnu-gcc",
     "CXX": "i686-unknown-linux-gnu-g++"
    },
    "libdir": "/app/lib32"
   },
   "org.freedesktop.Platform.VAAPI.Intel.i386": {
    "directory": "lib/i386-linux-gnu/dri/intel-vaapi-driver",
    "version": "23.08",
    "versions": "23.08",
    "autodelete": false,
    "no-autodownload": true,
    "add-ld-path": "lib",
    "download-if": "have-intel-gpu",
    "autoprune-unless": "have-intel-gpu"
   },
   "com.valvesoftware.Steam.Utility": {
    "subdirectories": true,
    "directory": "utils",
    "version": "stable",
    "versions": "stable;beta;test",
    "add-ld-path": "lib",
    "merge-dirs": "bin",
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "modules": [
   {
    "name": "vulkan-tools",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DGLSLANG_INSTALL_DIR=/app",
     "-DVULKAN_HEADERS_INSTALL_DIR=/app",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/KhronosGroup/Vulkan-Tools.git",
      "tag": "sdk-1.3.261.1"
     }
    ]
   },
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-examples=false",
     "-Dwith-util=false",
     "-Dwith-sd-bus-provider=no-daemon"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FeralInteractive/gamemode.git",
      "tag": "1.8.2",
      "commit": "c54d6d4243b0dd0afcb49f2c9836d432da171a2b",
      "x-checker-data": {
       "type": "git"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/gamemode/disable-pidfd.patch"
      ]
     }
    ]
   },
   {
    "name": "gamemode-32bit",
    "build-options": {
     "arch": {
      "x86_64": {
       "prepend-pkg-config-path": "/app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig",
       "ldflags": "-L/app/lib32",
       "append-path": "/usr/lib/sdk/toolchain-i386/bin",
       "env": {
        "CC": "i686-unknown-linux-gnu-gcc",
        "CXX": "i686-unknown-linux-gnu-g++"
       },
       "libdir": "/app/lib32"
      }
     }
    },
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-examples=false",
     "-Dwith-util=false",
     "-Dwith-sd-bus-provider=no-daemon"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/FeralInteractive/gamemode.git",
      "tag": "1.8.2",
      "commit": "c54d6d4243b0dd0afcb49f2c9836d432da171a2b",
      "x-checker-data": {
       "type": "git"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/gamemode/disable-pidfd.patch"
      ]
     }
    ]
   },
   {
    "name": "gamemoderun",
    "buildsystem": "simple",
    "build-commands": [
     "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"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/gamemode/disable-pidfd.patch"
      ]
     }
    ]
   },
   {
    "name": "rsync",
    "config-opts": [
     "--prefix=${FLATPAK_DEST}",
     "--with-included-popt",
     "--with-included-zlib",
     "--host=x86",
     "--disable-xxhash",
     "--disable-md2man"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://download.samba.org/pub/rsync/src/rsync-3.4.1.tar.gz",
      "sha256": "2924bcb3a1ed8b551fc101f740b9f0fe0a202b115027647cf69850d65fd88c52",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 4217,
       "stable-only": true,
       "url-template": "https://download.samba.org/pub/rsync/src/rsync-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "hyperplay",
    "buildsystem": "simple",
    "build-commands": [
     "mkdir hyperplay",
     "tar -xJf hyperplay*.tar.xz -C hyperplay --strip-components=1",
     "mv hyperplay /app/bin/hyperplay",
     "install -D hyperplay-run -t /app/bin"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "hyperplay-run",
      "commands": [
       "for i in {0..9}; do",
       "test -S $XDG_RUNTIME_DIR/discord-ipc-$i || ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-$i;",
       "done",
       "zypak-wrapper /app/bin/hyperplay/hyperplay \"$@\""
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/HyperPlay-Gaming/hyperplay-desktop-client/releases/download/v0.31.0/hyperplay-0.31.0.tar.xz",
      "sha512": "16387a2ea017b43c0f47422085a0075e8f09c05abcb724e9f07d2a7522454dfe6614b5df51ad687b7d513fae75ef6cab4506f2612d95e8fe8eae413e9550e217"
     }
    ]
   },
   {
    "name": "platform-bootstrap",
    "buildsystem": "simple",
    "build-commands": [
     "set -e\nmkdir -p /app/bin\nmkdir -p /app/utils\nmkdir -p /app/lib/i386-linux-gnu\nmkdir -p /app/lib/debug/lib/i386-linux-gnu\nmkdir -p /app/lib/i386-linux-gnu/GL\nmkdir -p /app/lib/i386-linux-gnu/dri/intel-vaapi-driver\ninstall -Dm644 $FLATPAK_ID.png /app/share/icons/hicolor/128x128/apps/$FLATPAK_ID.png\ninstall -Dm644 $FLATPAK_ID.desktop /app/share/applications/$FLATPAK_ID.desktop\ninstall -Dm644 -t /app/etc ld.so.conf\ninstall -Dm644 $FLATPAK_ID.metainfo.xml /app/share/metainfo/$FLATPAK_ID.appdata.xml\n"
    ],
    "sources": [
     {
      "type": "inline",
      "dest-filename": "ld.so.conf",
      "contents": "/app/lib32\n/app/lib/i386-linux-gnu\n"
     },
     {
      "type": "file",
      "path": "xyz.hyperplay.HyperPlay.metainfo.xml"
     },
     {
      "type": "file",
      "path": "xyz.hyperplay.HyperPlay.png"
     },
     {
      "type": "file",
      "path": "xyz.hyperplay.HyperPlay.desktop"
     }
    ]
   },
   {
    "name": "p7zip",
    "no-autogen": true,
    "build-options": {
     "strip": true
    },
    "make-args": [
     "all2",
     "OPTFLAGS=-O2 -g -std=gnu++14",
     "DEST_HOME=$(FLATPAK_DEST)",
     "DEST_BIN=$(FLATPAK_DEST)/bin",
     "DEST_SHARE=$(FLATPAK_DEST)/lib/p7zip",
     "DEST_MAN=$(FLATPAK_DEST)/share/man"
    ],
    "make-install-args": [
     "DEST_HOME=$(FLATPAK_DEST)",
     "DEST_BIN=$(FLATPAK_DEST)/bin",
     "DEST_SHARE=$(FLATPAK_DEST)/lib/p7zip",
     "DEST_MAN=$(FLATPAK_DEST)/share/man"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://downloads.sourceforge.net/p7zip/p7zip_16.02_src_all.tar.bz2",
      "sha256": "5eb20ac0e2944f6cb9c2d51dd6c4518941c185347d4089ea89087ffdd6e2341f"
     },
     {
      "type": "patch",
      "paths": [
       "patches/p7zip/gcc10-conversion.patch"
      ]
     },
     {
      "type": "shell",
      "only-arches": [
       "x86_64"
      ],
      "commands": [
       "ln -sf makefile.linux_amd64_asm makefile.machine"
      ]
     },
     {
      "type": "shell",
      "only-arches": [
       "i386"
      ],
      "commands": [
       "ln -sf makefile.linux_x86_asm_gcc_4.X makefile.machine"
      ]
     }
    ],
    "modules": [
     {
      "name": "yasm",
      "buildsystem": "cmake-ninja",
      "sources": [
       {
        "type": "archive",
        "url": "https://github.com/yasm/yasm/archive/v1.3.0.tar.gz",
        "sha256": "f708be0b7b8c59bc1dbe7134153cd2f31faeebaa8eec48676c10f972a1f13df3"
       }
      ],
      "cleanup": [
       "*"
      ]
     }
    ]
   },
   {
    "name": "cabextract",
    "build-options": {
     "strip": true
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://www.cabextract.org.uk/cabextract-1.11.tar.gz",
      "sha256": "b5546db1155e4c718ff3d4b278573604f30dd64c3c5bfd4657cd089b823a3ac6",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 245,
       "url-template": "https://www.cabextract.org.uk/cabextract-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "unrar",
    "no-autogen": true,
    "build-options": {
     "strip": true
    },
    "make-install-args": [
     "DESTDIR=$(FLATPAK_DEST)"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://www.rarlab.com/rar/unrarsrc-7.1.6.tar.gz",
      "sha256": "ca5e1da37dd6fa1b78bb5ed675486413f79e4a917709744aa04b6f93dfd914f0",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 13306,
       "url-template": "https://www.rarlab.com/rar/unrarsrc-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "binutils-ar",
    "buildsystem": "simple",
    "build-options": {
     "strip": true
    },
    "build-commands": [
     "install -Dm755 /usr/bin/ar -t ${FLATPAK_DEST}/bin/",
     "install -Dm755 /usr/lib/$(gcc -print-multiarch)/libbfd-*.so -t ${FLATPAK_DEST}/lib/"
    ]
   },
   {
    "name": "aria2",
    "config-opts": [
     "--disable-libaria2",
     "--disable-websocket",
     "--without-sqlite3"
    ],
    "sources": [
     {
      "type": "archive",
      "sha256": "58d1e7608c12404f0229a3d9a4953d0d00c18040504498b483305bcb3de907a5",
      "url": "https://github.com/aria2/aria2/releases/download/release-1.36.0/aria2-1.36.0.tar.xz"
     },
     {
      "type": "patch",
      "path": "patches/aria2/working-build.patch"
     }
    ]
   },
   {
    "name": "libcaca",
    "config-opts": [
     "--disable-doc",
     "--disable-python",
     "--disable-ruby",
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://caca.zoy.org/files/libcaca/libcaca-0.99.beta19.tar.gz",
      "sha256": "128b467c4ed03264c187405172a4e83049342cc8cc2f655f53a2d0ee9d3772f4"
     }
    ]
   },
   {
    "name": "libcaca-32bit",
    "build-options": {
     "arch": {
      "x86_64": {
       "prepend-pkg-config-path": "/app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig",
       "ldflags": "-L/app/lib32",
       "append-path": "/usr/lib/sdk/toolchain-i386/bin",
       "env": {
        "CC": "i686-unknown-linux-gnu-gcc",
        "CXX": "i686-unknown-linux-gnu-g++"
       },
       "libdir": "/app/lib32"
      }
     }
    },
    "config-opts": [
     "--disable-doc",
     "--disable-python",
     "--disable-ruby",
     "--disable-static"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "http://caca.zoy.org/files/libcaca/libcaca-0.99.beta19.tar.gz",
      "sha256": "128b467c4ed03264c187405172a4e83049342cc8cc2f655f53a2d0ee9d3772f4"
     }
    ]
   },
   {
    "name": "libbsd",
    "sources": [
     {
      "type": "archive",
      "url": "https://libbsd.freedesktop.org/releases/libbsd-0.10.0.tar.xz",
      "sha256": "34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887"
     }
    ]
   },
   {
    "name": "libbsd-32bit",
    "build-options": {
     "arch": {
      "x86_64": {
       "prepend-pkg-config-path": "/app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig",
       "ldflags": "-L/app/lib32",
       "append-path": "/usr/lib/sdk/toolchain-i386/bin",
       "env": {
        "CC": "i686-unknown-linux-gnu-gcc",
        "CXX": "i686-unknown-linux-gnu-g++"
       },
       "libdir": "/app/lib32"
      }
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://libbsd.freedesktop.org/releases/libbsd-0.10.0.tar.xz",
      "sha256": "34b8adc726883d0e85b3118fa13605e179a62b31ba51f676136ecb2d0bc1a887"
     }
    ]
   },
   {
    "name": "libjpeg",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_SKIP_RPATH:BOOL=YES",
     "-DENABLE_STATIC:BOOL=NO",
     "-DWITH_JPEG8:BOOL=YES",
     "-DCMAKE_INSTALL_LIBDIR=/app/lib"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/2.1.3.tar.gz",
      "sha256": "dbda0c685942aa3ea908496592491e5ec8160d2cf1ec9d5fd5470e50768e7859"
     }
    ]
   },
   {
    "name": "libjpeg-32bit",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "arch": {
      "x86_64": {
       "prepend-pkg-config-path": "/app/lib32/pkgconfig:/usr/lib/i386-linux-gnu/pkgconfig",
       "ldflags": "-L/app/lib32",
       "append-path": "/usr/lib/sdk/toolchain-i386/bin",
       "env": {
        "CC": "i686-unknown-linux-gnu-gcc",
        "CXX": "i686-unknown-linux-gnu-g++"
       },
       "libdir": "/app/lib32"
      }
     }
    },
    "config-opts": [
     "-DCMAKE_SKIP_RPATH:BOOL=YES",
     "-DENABLE_STATIC:BOOL=NO",
     "-DWITH_JPEG8:BOOL=YES"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/libjpeg-turbo/libjpeg-turbo/archive/refs/tags/2.1.3.tar.gz",
      "sha256": "dbda0c685942aa3ea908496592491e5ec8160d2cf1ec9d5fd5470e50768e7859"
     }
    ]
   }
  ]
 }
}