{
 "app_id": "com.shatteredpixel.shatteredpixeldungeon",
 "source_url": "https://raw.githubusercontent.com/flathub/com.shatteredpixel.shatteredpixeldungeon/master/com.shatteredpixel.shatteredpixeldungeon.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=wayland",
  "--socket=x11",
  "--device=all"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:08:44.491716+00:00",
 "manifest": {
  "app-id": "com.shatteredpixel.shatteredpixeldungeon",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "com.shatteredpixel.shatteredpixeldungeon.sh",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk21"
  ],
  "finish-args": [
   "--socket=wayland",
   "--socket=x11",
   "--share=ipc",
   "--device=all",
   "--env=PATH=/usr/bin:/app/bin:/app/jre/bin",
   "--socket=pulseaudio",
   "--share=network"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk21/install.sh"
    ]
   },
   {
    "name": "shatteredpixeldungeon",
    "buildsystem": "simple",
    "build-commands": [
     "install -Dm755 ${FLATPAK_ID}.sh -t /app/bin",
     "install -Dm644 ${FLATPAK_ID}.desktop -t /app/share/applications",
     "install -Dm644 ${FLATPAK_ID}.metainfo.xml -t /app/share/metainfo",
     "install -Dm644 ${FLATPAK_ID}.jar -t /app/share/${FLATPAK_ID}",
     "install -Dm644 ${FLATPAK_ID}.png -t /app/share/icons/hicolor/256x256/apps"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/00-Evan/shattered-pixel-dungeon/releases/download/v4.0.0/ShatteredPD-v4.0.0-Java.jar",
      "sha256": "b3e6f9508dea1a7a32a9934e2bc18f20a9a905df5732550404294340d31c87a1",
      "dest-filename": "com.shatteredpixel.shatteredpixeldungeon.jar"
     },
     {
      "type": "file",
      "path": "com.shatteredpixel.shatteredpixeldungeon.sh"
     },
     {
      "type": "file",
      "path": "com.shatteredpixel.shatteredpixeldungeon.desktop"
     },
     {
      "type": "file",
      "path": "com.shatteredpixel.shatteredpixeldungeon.metainfo.xml"
     },
     {
      "type": "file",
      "url": "https://github.com/00-Evan/shattered-pixel-dungeon/raw/47d9f3219d5eb0f3f7482b78b9e05334f3de0040/desktop/src/main/assets/icons/icon_256.png",
      "sha256": "00962b4d99401827b24bce91bc76672ee69380d075085f6d5148a085d7badcb5",
      "dest-filename": "com.shatteredpixel.shatteredpixeldungeon.png"
     },
     {
      "type": "file",
      "url": "https://raw.githubusercontent.com/00-Evan/shattered-pixel-dungeon/refs/heads/master/LICENSE.txt",
      "sha256": "d0495053051967ebe76fb1facd287d79d1ed800da1be75cf501a556bc39a0472"
     }
    ]
   }
  ]
 }
}