{
 "app_id": "io.github.simonschubert.Braincup",
 "source_url": "https://raw.githubusercontent.com/SimonSchubert/Braincup/master/flatpak/io.github.simonschubert.Braincup.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--socket=x11",
  "--socket=wayland",
  "--share=ipc",
  "--device=dri",
  "--socket=pulseaudio",
  "--persist=.braincup",
  "--persist=.java"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T13:02:47.225327+00:00",
 "manifest": {
  "app-id": "io.github.simonschubert.Braincup",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "braincup-wrapper",
  "finish-args": [
   "--socket=x11",
   "--socket=wayland",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--persist=.braincup",
   "--persist=.java"
  ],
  "modules": [
   {
    "name": "braincup",
    "buildsystem": "simple",
    "build-commands": [
     "tar xf Braincup-linux-x86_64.tar.gz",
     "mkdir -p /app/lib/braincup",
     "cp -r Braincup/* /app/lib/braincup/",
     "install -Dm755 braincup-wrapper.sh /app/bin/braincup-wrapper",
     "install -Dm644 io.github.simonschubert.Braincup.desktop /app/share/applications/io.github.simonschubert.Braincup.desktop",
     "install -Dm644 io.github.simonschubert.Braincup.metainfo.xml /app/share/metainfo/io.github.simonschubert.Braincup.metainfo.xml",
     "install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/io.github.simonschubert.Braincup.svg",
     "install -Dm644 icon.png /app/share/icons/hicolor/512x512/apps/io.github.simonschubert.Braincup.png"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/SimonSchubert/Braincup/releases/download/v3.6.0/Braincup-3.6.0-linux-x86_64.tar.gz",
      "sha256": "8c39cf15262f9a8d2c42d68eef12f4a46d4184216d42a1f2e7e10ce2bb6e5363",
      "dest-filename": "Braincup-linux-x86_64.tar.gz",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/SimonSchubert/Braincup/releases/latest",
       "version-query": ".tag_name | sub(\"^v\"; \"\")",
       "url-query": ".assets[] | select(.name | test(\"linux-x86_64\\\\.tar\\\\.gz$\")) | .browser_download_url"
      }
     },
     {
      "type": "file",
      "path": "io.github.simonschubert.Braincup.desktop"
     },
     {
      "type": "file",
      "path": "io.github.simonschubert.Braincup.metainfo.xml"
     },
     {
      "type": "file",
      "path": "../composeApp/icon.svg"
     },
     {
      "type": "file",
      "path": "../composeApp/icon.png"
     },
     {
      "type": "script",
      "dest-filename": "braincup-wrapper.sh",
      "commands": [
       "export PATH=\"/app/lib/braincup/bin:${PATH}\"",
       "export LD_LIBRARY_PATH=\"/app/lib/braincup/lib/runtime/lib:${LD_LIBRARY_PATH}\"",
       "exec /app/lib/braincup/bin/Braincup \"$@\""
      ]
     }
    ]
   }
  ]
 }
}