{
 "app_id": "org.prismlauncher.PrismLauncher",
 "source_url": "https://raw.githubusercontent.com/flathub/org.prismlauncher.PrismLauncher/master/org.prismlauncher.PrismLauncher.yml",
 "runtime": "org.kde.Platform",
 "runtime_version": "6.10",
 "sdk": "org.kde.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--filesystem=xdg-download:ro",
  "--filesystem=xdg-config/kdeglobals:ro",
  "--filesystem=~/.ftba:ro",
  "--filesystem=/sys/kernel/mm/hugepages:ro",
  "--filesystem=/sys/kernel/mm/transparent_hugepage:ro",
  "--talk-name=com.canonical.AppMenu.Registrar",
  "--talk-name=org.kde.kconfig.notify",
  "--talk-name=org.kde.KGlobalSettings"
 ],
 "module_count": 9,
 "fetched_at": "2026-09-19T15:46:54.296256+00:00",
 "manifest": {
  "id": "org.prismlauncher.PrismLauncher",
  "runtime": "org.kde.Platform",
  "runtime-version": "6.10",
  "sdk": "org.kde.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk17"
  ],
  "command": "prismlauncher",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--device=all",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--filesystem=xdg-download:ro",
   "--filesystem=~/.ftba:ro",
   "--filesystem=/sys/kernel/mm/hugepages:ro",
   "--filesystem=/sys/kernel/mm/transparent_hugepage:ro"
  ],
  "add-extensions": {
   "org.prismlauncher.PrismLauncher.Extension": {
    "directory": "extensions",
    "add-ld-path": "lib",
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": true
   }
  },
  "cleanup-commands": [
   "mkdir -p ${FLATPAK_DEST}/extensions"
  ],
  "modules": [
   "cmark.yml",
   "tomlplusplus.yml",
   "libdecor.json",
   "flite.json",
   {
    "name": "prismlauncher",
    "buildsystem": "cmake-ninja",
    "builddir": true,
    "config-opts": [
     "-DLauncher_BUILD_PLATFORM=flatpak",
     "-DLauncher_ENABLE_JAVA_DOWNLOADER=ON",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "build-options": {
     "env": {
      "JAVA_HOME": "/usr/lib/sdk/openjdk17/jvm/openjdk-17",
      "JAVA_COMPILER": "/usr/lib/sdk/openjdk17/jvm/openjdk-17/bin/javac"
     }
    },
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/PrismLauncher/PrismLauncher/releases/download/11.1.0/PrismLauncher-11.1.0.tar.gz",
      "sha256": "c0f6965f6c61055f92872d6eb9e79b845d3684f03bfd5a2ffc533a29fb26e604",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/PrismLauncher/PrismLauncher/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".assets[] | select(.name == \"PrismLauncher-\" + $version + \".tar.gz\") | .browser_download_url"
      }
     }
    ]
   },
   {
    "name": "glfw",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo",
     "-DBUILD_SHARED_LIBS:BOOL=ON",
     "-DGLFW_BUILD_WAYLAND:BOOL=ON",
     "-DGLFW_BUILD_DOCS:BOOL=OFF"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/glfw/glfw.git",
      "commit": "7b6aead9fb88b3623e3b3725ebb42670cbe4c579"
     },
     {
      "type": "patch",
      "path": "patches/0001-Wayland-Partially-implement-glfwSetCursorPos.patch"
     },
     {
      "type": "patch",
      "path": "patches/0002-Wayland-Implement-glfwSetWindowIcon.patch"
     },
     {
      "type": "patch",
      "path": "patches/0003-proceed-even-though-no-window-icon-support-on-waylan.patch"
     }
    ],
    "cleanup": [
     "/include",
     "/lib/cmake",
     "/lib/pkgconfig"
    ]
   },
   {
    "name": "xrandr",
    "buildsystem": "autotools",
    "sources": [
     {
      "type": "archive",
      "url": "https://xorg.freedesktop.org/archive/individual/app/xrandr-1.5.4.tar.xz",
      "sha256": "2cafccb2aaf2491a4068676117a0d4f90ab307724b96fffc54cd1da953779400",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 14957,
       "stable-only": true,
       "url-template": "https://xorg.freedesktop.org/archive/individual/app/xrandr-$version.tar.xz"
      }
     }
    ],
    "cleanup": [
     "/share/man",
     "/bin/xkeystone"
    ]
   },
   {
    "name": "gamemode",
    "buildsystem": "meson",
    "config-opts": [
     "-Dwith-sd-bus-provider=no-daemon",
     "-Dwith-examples=false"
    ],
    "post-install": [
     "install -Dm755 ../data/gamemoderun -t /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "dest-filename": "gamemode.tar.gz",
      "url": "https://api.github.com/repos/FeralInteractive/gamemode/tarball/1.8.2",
      "sha256": "2886d4ce543c78bd2a364316d5e7fd59ef06b71de63f896b37c6d3dc97658f60",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/FeralInteractive/gamemode/releases/latest",
       "version-query": ".tag_name",
       "url-query": ".tarball_url",
       "timestamp-query": ".published_at"
      }
     }
    ],
    "cleanup": [
     "/include",
     "/lib/pkgconfig",
     "/lib/libgamemodeauto.a"
    ]
   },
   {
    "name": "enhance",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 prime-run /app/bin/prime-run",
     "mv /app/bin/prismlauncher /app/bin/prismrun",
     "install -Dm755 prismlauncher /app/bin/prismlauncher"
    ],
    "sources": [
     {
      "type": "file",
      "path": "prime-run"
     },
     {
      "type": "file",
      "path": "prismlauncher"
     }
    ]
   }
  ]
 }
}