{
 "app_id": "vet.rsc.OpenRSC.Launcher",
 "source_url": "https://raw.githubusercontent.com/flathub/vet.rsc.OpenRSC.Launcher/master/vet.rsc.OpenRSC.Launcher.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:17:35.764085+00:00",
 "manifest": {
  "id": "vet.rsc.OpenRSC.Launcher",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "openrsc",
  "separate-locales": false,
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.openjdk17"
  ],
  "finish-args": [
   "--share=network",
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--env=PATH=/usr/bin:/app/bin:/app/jre/bin"
  ],
  "modules": [
   {
    "name": "openjdk",
    "buildsystem": "simple",
    "build-commands": [
     "/usr/lib/sdk/openjdk17/install.sh"
    ]
   },
   {
    "name": "openrsc",
    "buildsystem": "simple",
    "build-commands": [
     "install -D openrsc /app/bin/openrsc",
     "install -D OpenRSC.jar /app/share/OpenRSC.jar",
     "install -Dm644 ${FLATPAK_ID}.svg -t /app/share/icons/hicolor/scalable/apps/",
     "install -Dm644 ${FLATPAK_ID}.desktop -t /app/share/applications/",
     "install -Dm644 ${FLATPAK_ID}.appdata.xml -t /app/share/metainfo/"
    ],
    "sources": [
     {
      "type": "script",
      "dest-filename": "openrsc",
      "commands": [
       "exec java -jar /app/share/OpenRSC.jar --dir ~/.var/app/vet.rsc.OpenRSC.Launcher/ --no-update \"$@\""
      ]
     },
     {
      "type": "file",
      "url": "https://gitlab.com/openrsc/openrsc/-/jobs/16107105568/artifacts/raw/PC_Launcher/OpenRSC.jar",
      "sha256": "8ef724c96da027f9236a0b7cffd7e9218f08a9c99501ee3a949d8e64164a49e5",
      "dest-filename": "OpenRSC.jar",
      "x-checker-data": {
       "type": "rotating-url",
       "url": "https://gitlab.com/openrsc/openrsc/-/jobs/artifacts/develop/raw/PC_Launcher/OpenRSC.jar?job=launcherUpload"
      }
     },
     {
      "type": "file",
      "path": "vet.rsc.OpenRSC.Launcher.svg"
     },
     {
      "type": "file",
      "path": "vet.rsc.OpenRSC.Launcher.desktop"
     },
     {
      "type": "file",
      "path": "vet.rsc.OpenRSC.Launcher.appdata.xml"
     }
    ]
   }
  ]
 }
}