{
 "app_id": "top.jtmonster.jhentai",
 "source_url": "https://raw.githubusercontent.com/pugaizai/flatpak/main/manifests/top.jtmonster.jhentai/top.jtmonster.jhentai.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--share=network",
  "--device=dri",
  "--talk-name=org.freedesktop.ScreenSaver"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T13:05:42.434244+00:00",
 "manifest": {
  "app-id": "top.jtmonster.jhentai",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.llvm22"
  ],
  "command": "jhentai",
  "finish-args": [
   "--share=ipc",
   "--socket=fallback-x11",
   "--socket=wayland",
   "--share=network",
   "--device=dri",
   "--talk-name=org.freedesktop.ScreenSaver"
  ],
  "cleanup": [
   "*.a",
   "*.la",
   "/include",
   "/lib/cmake",
   "/lib/debug",
   "/lib/pkgconfig",
   "/man",
   "/share/man",
   "/share/doc",
   "/share/gtk-doc"
  ],
  "modules": [
   {
    "name": "jhentai",
    "buildsystem": "simple",
    "build-options": {
     "build-args": [
      "--share=network"
     ],
     "arch": {
      "x86_64": {
       "env": {
        "BUNDLE_PATH": "build/linux/x64/release/bundle"
       }
      },
      "aarch64": {
       "env": {
        "BUNDLE_PATH": "build/linux/arm64/release/bundle"
       }
      }
     },
     "append-path": "/usr/lib/sdk/llvm22/bin:/run/build/jhentai/flutter/bin",
     "prepend-ld-library-path": "/usr/lib/sdk/llvm22/lib",
     "env": {
      "PUB_CACHE": "/run/build/jhentai/.pub-cache"
     }
    },
    "build-commands": [
     "flutter build linux --release --target lib/src/main.dart",
     "mkdir -pv ${FLATPAK_DEST}/bin",
     "cp -rv ${BUNDLE_PATH}/* ${FLATPAK_DEST}/bin",
     "install -Dvm644 ${FLATPAK_ID}.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo",
     "install -Dvm644 linux/assets/${FLATPAK_ID}.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dvm644 assets/icon/JHenTai_512.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/jiangtian616/JHenTai.git",
      "tag": "v8.0.16+334",
      "commit": "1e23251d5efd4d93b0cacfe0f08b5a25fa3c7e31",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+(?:\\+\\d+)?)$",
       "is-main-source": true
      }
     },
     {
      "type": "file",
      "path": "top.jtmonster.jhentai.metainfo.xml"
     },
     {
      "type": "git",
      "url": "https://github.com/flutter/flutter.git",
      "tag": "3.44.9",
      "commit": "6b182d2c7585eba26d4edce0f97630effd256c33",
      "dest": "flutter"
     }
    ]
   }
  ]
 }
}