{
 "app_id": "com.sindresorhus.Caprine",
 "source_url": "https://raw.githubusercontent.com/flathub/com.sindresorhus.Caprine/master/com.sindresorhus.Caprine.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=all",
  "--filesystem=xdg-documents:ro",
  "--filesystem=xdg-pictures:ro",
  "--filesystem=xdg-videos:ro",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.Notifications"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:08:44.491719+00:00",
 "manifest": {
  "app-id": "com.sindresorhus.Caprine",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "separate-locales": false,
  "command": "caprine",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--device=all",
   "--share=network",
   "--filesystem=xdg-documents:ro",
   "--filesystem=xdg-pictures:ro",
   "--filesystem=xdg-videos:ro",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin"
  },
  "modules": [
   {
    "name": "caprine",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node22/bin",
     "env": {
      "XDG_CACHE_HOME": "/run/build/caprine/flatpak-node/cache",
      "npm_config_cache": "/run/build/caprine/flatpak-node/npm-cache",
      "npm_config_nodedir": "/usr/lib/sdk/node22",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm install --offline",
     "./node_modules/.bin/tsc",
     ". ../flatpak-node/electron-builder-arch-args.sh\n./node_modules/.bin/electron-builder $ELECTRON_BUILDER_ARCH_ARGS --linux --dir\n",
     "cp -a dist/linux*unpacked /app/main",
     "install -Dm644 ../${FLATPAK_ID}.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm644 build/icon.png /app/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm644 ../${FLATPAK_ID}.metainfo.xml /app/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm755 ../caprine.sh /app/bin/caprine"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sindresorhus/caprine",
      "tag": "v2.61.0",
      "commit": "c3cbcf94e0c2f964fc9a709a8192625e57ce5206",
      "dest": "main",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$",
       "version-scheme": "semantic"
      }
     },
     {
      "type": "script",
      "dest-filename": "caprine.sh",
      "commands": [
       "set -o errexit",
       "TMPDIR=\"${XDG_RUNTIME_DIR}/app/${FLATPAK_ID}\"",
       "export TMPDIR",
       "exec zypak-wrapper.sh /app/main/caprine --enable-features=UseOzonePlatform,WaylandWindowDecorations --ozone-platform-hint=auto \"$@\""
      ]
     },
     {
      "type": "file",
      "path": "com.sindresorhus.Caprine.desktop"
     },
     {
      "type": "file",
      "path": "com.sindresorhus.Caprine.metainfo.xml"
     },
     "generated-sources.json"
    ]
   }
  ]
 }
}