{
 "app_id": "io.github.hakuneko.HakuNeko",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.hakuneko.HakuNeko/master/io.github.hakuneko.HakuNeko.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=home"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:10.158467+00:00",
 "manifest": {
  "app-id": "io.github.hakuneko.HakuNeko",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "hakuneko",
  "separate-locales": false,
  "rename-desktop-file": "hakuneko-desktop.desktop",
  "rename-icon": "hakuneko-desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--filesystem=home"
  ],
  "modules": [
   {
    "name": "hakuneko-desktop",
    "buildsystem": "simple",
    "build-commands": [
     "ar x hakuneko-desktop_*.deb",
     "rm -f hakuneko-desktop_*.deb",
     "tar xf data.tar.xz",
     "rm -f control.tar.gz data.tar.xz debian-binary",
     "cp -r usr/* /app",
     "chmod -R a-s,go+rX,go-w /app/lib/hakuneko-desktop/hakuneko",
     "sed -i 's|Exec=.*|Exec=hakuneko %U|' /app/share/applications/hakuneko-desktop.desktop",
     "install hakuneko.sh /app/bin/hakuneko",
     "install -Dm644 io.github.hakuneko.HakuNeko.metainfo.xml /app/share/appdata/io.github.hakuneko.HakuNeko.metainfo.xml"
    ],
    "sources": [
     {
      "type": "file",
      "url": "https://github.com/manga-download/hakuneko/releases/download/v6.1.7/hakuneko-desktop_6.1.7_linux_amd64.deb",
      "only-arches": [
       "x86_64"
      ],
      "sha256": "06bb17d7a06bb0601053eaaf423f9176f06ff3636cc43ffc024438e1962dcd02"
     },
     {
      "type": "file",
      "url": "https://github.com/manga-download/hakuneko/releases/download/v6.1.7/hakuneko-desktop_6.1.7_linux_arm64.deb",
      "only-arches": [
       "aarch64"
      ],
      "sha256": "3cdff4e505293e1815b3dd465e64dceeccdc6532f45f3685830b186f38f3f6be"
     },
     {
      "type": "script",
      "dest-filename": "hakuneko.sh",
      "commands": [
       "exec env TMPDIR=$XDG_CACHE_HOME zypak-wrapper /app/lib/hakuneko-desktop/hakuneko \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "io.github.hakuneko.HakuNeko.metainfo.xml"
     }
    ]
   }
  ]
 }
}