{
 "app_id": "com.bladecoder.adventure-editor",
 "source_url": "https://raw.githubusercontent.com/flathub/com.bladecoder.adventure-editor/master/com.bladecoder.adventure-editor.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=home",
  "--filesystem=xdg-run/pipewire-0"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:07:02.937126+00:00",
 "manifest": {
  "app-id": "com.bladecoder.adventure-editor",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk17"
  ],
  "command": "adventure-editor",
  "finish-args": [
   "--share=network",
   "--share=ipc",
   "--socket=x11",
   "--socket=wayland",
   "--socket=pulseaudio",
   "--device=dri",
   "--filesystem=home",
   "--filesystem=xdg-run/pipewire-0",
   "--env=PATH=/usr/bin:/app/bin:/app/jdk/bin",
   "--env=JAVA_HOME=/app/jdk"
  ],
  "cleanup": [
   "/include",
   "/lib/cmake",
   "/lib/pkgconfig",
   "/share/man"
  ],
  "modules": [
   {
    "name": "xrandr",
    "sources": [
     {
      "type": "archive",
      "url": "https://xorg.freedesktop.org/archive/individual/app/xrandr-1.5.4.tar.xz",
      "sha256": "2cafccb2aaf2491a4068676117a0d4f90ab307724b96fffc54cd1da953779400"
     },
     {
      "type": "shell",
      "commands": [
       "autoreconf -fi"
      ]
     }
    ]
   },
   {
    "name": "libzip",
    "buildsystem": "cmake",
    "sources": [
     {
      "type": "archive",
      "url": "https://libzip.org/download/libzip-1.11.4.tar.xz",
      "sha256": "8a247f57d1e3e6f6d11413b12a6f28a9d388de110adc0ec608d893180ed7097b"
     }
    ]
   },
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk17/installjdk.sh"
    ]
   },
   {
    "name": "adventure-editor",
    "buildsystem": "simple",
    "build-commands": [
     "install -D bin/adventure-editor /app/bin/adventure-editor",
     "install -D lib/*.jar /app/lib",
     "install -Dm644 desktop/com.bladecoder.adventure-editor.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 desktop/com.bladecoder.adventure-editor.desktop -t /app/share/applications/",
     "install -Dm644 com.bladecoder.adventure-editor.appdata.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/bladecoder/bladecoder-adventure-engine/releases/download/v4.4.0/adventure-editor-4.4.0.zip",
      "sha256": "3b89ae4b49eb143806585055ba4aedeadf4fcce168e2c963629cd8db682ac0ed"
     },
     {
      "type": "file",
      "path": "com.bladecoder.adventure-editor.appdata.xml"
     }
    ]
   }
  ]
 }
}