{
 "app_id": "io.github.simonschubert.Kai",
 "source_url": "https://raw.githubusercontent.com/SimonSchubert/Kai/main/flatpak/io.github.simonschubert.Kai.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--socket=x11",
  "--socket=wayland",
  "--share=ipc",
  "--device=dri",
  "--socket=pulseaudio",
  "--persist=.kai",
  "--persist=.java"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T13:02:27.022856+00:00",
 "manifest": {
  "app-id": "io.github.simonschubert.Kai",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "kai-wrapper",
  "finish-args": [
   "--share=network",
   "--socket=x11",
   "--socket=wayland",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--persist=.kai",
   "--persist=.java"
  ],
  "modules": [
   {
    "name": "kai",
    "buildsystem": "simple",
    "build-commands": [
     "tar xf Kai-linux-x86_64.tar.gz",
     "mkdir -p /app/lib/kai",
     "cp -r Kai/* /app/lib/kai/",
     "install -Dm755 kai-wrapper.sh /app/bin/kai-wrapper",
     "install -Dm644 io.github.simonschubert.Kai.desktop /app/share/applications/io.github.simonschubert.Kai.desktop",
     "install -Dm644 io.github.simonschubert.Kai.metainfo.xml /app/share/metainfo/io.github.simonschubert.Kai.metainfo.xml",
     "install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/io.github.simonschubert.Kai.svg",
     "install -Dm644 icon.png /app/share/icons/hicolor/512x512/apps/io.github.simonschubert.Kai.png"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/SimonSchubert/Kai/releases/download/v3.0.0/Kai-3.0.0-linux-x86_64.tar.gz",
      "sha256": "2f8e283f941f61f72f209bda01c8d53736b07db6cd74b9a99a9705d000c48715",
      "dest-filename": "Kai-linux-x86_64.tar.gz",
      "x-checker-data": {
       "type": "json",
       "url": "https://api.github.com/repos/SimonSchubert/Kai/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.Kai.desktop"
     },
     {
      "type": "file",
      "path": "io.github.simonschubert.Kai.metainfo.xml"
     },
     {
      "type": "file",
      "path": "../composeApp/icon.svg"
     },
     {
      "type": "file",
      "path": "../composeApp/icon.png"
     },
     {
      "type": "script",
      "dest-filename": "kai-wrapper.sh",
      "commands": [
       "export PATH=\"/app/lib/kai/bin:${PATH}\"",
       "export LD_LIBRARY_PATH=\"/app/lib/kai/lib/runtime/lib:${LD_LIBRARY_PATH}\"",
       "exec /app/lib/kai/bin/Kai \"$@\""
      ]
     }
    ]
   }
  ]
 }
}