{
 "app_id": "net.runelite.RuneLite",
 "source_url": "https://raw.githubusercontent.com/flathub/net.runelite.RuneLite/master/net.runelite.RuneLite.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-run/app/com.discordapp.Discord:create",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:13:42.311104+00:00",
 "manifest": {
  "id": "net.runelite.RuneLite",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "runelite",
  "separate-locales": false,
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk11"
  ],
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=x11",
   "--device=dri",
   "--socket=pulseaudio",
   "--env=JAVA_HOME=/app/jre",
   "--talk-name=org.freedesktop.Notifications",
   "--filesystem=xdg-run/app/com.discordapp.Discord:create",
   "--persist=.runelite"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk11/install.sh"
    ]
   },
   {
    "name": "runelite",
    "buildsystem": "simple",
    "build-commands": [
     "install -D runelite /app/bin/runelite",
     "install -D RuneLite.jar /app/share/RuneLite.jar",
     "install -Dm644 net.runelite.RuneLite.png /app/share/icons/hicolor/128x128/apps/net.runelite.RuneLite.png",
     "install -Dm644 net.runelite.RuneLite.desktop /app/share/applications/net.runelite.RuneLite.desktop",
     "install -Dm644 net.runelite.RuneLite.metainfo.xml /app/share/metainfo/net.runelite.RuneLite.metainfo.xml"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "runelite",
      "commands": [
       "for file in $XDG_RUNTIME_DIR/app/com.discordapp.Discord/discord-ipc-*; do ln -sf $file $XDG_RUNTIME_DIR/$(basename $file); done",
       "exec $JAVA_HOME/bin/java -jar /app/share/RuneLite.jar \"$@\""
      ]
     },
     {
      "type": "file",
      "url": "https://github.com/runelite/launcher/releases/download/2.7.5/RuneLite.jar",
      "sha256": "d22398f15a512f08f596abc3f7b47fb8c58d7a198bf6158eab91e166584024af"
     },
     {
      "type": "file",
      "path": "net.runelite.RuneLite.png"
     },
     {
      "type": "file",
      "path": "net.runelite.RuneLite.desktop"
     },
     {
      "type": "file",
      "path": "net.runelite.RuneLite.metainfo.xml"
     }
    ]
   }
  ]
 }
}