{
 "app_id": "io.github.chapdel.whathush",
 "source_url": "https://raw.githubusercontent.com/chapdel/whathush/master/packaging/flatpak/io.github.chapdel.whathush.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--device=all",
  "--talk-name=org.freedesktop.Notifications",
  "--talk-name=org.kde.StatusNotifierWatcher",
  "--talk-name=org.freedesktop.ScreenSaver",
  "--talk-name=org.gnome.ScreenSaver",
  "--talk-name=org.freedesktop.secrets",
  "--talk-name=org.kde.kwalletd6",
  "--talk-name=org.kde.kwalletd5",
  "--filesystem=xdg-download",
  "--env=ELECTRON_OZONE_PLATFORM_HINT=auto"
 ],
 "module_count": 1,
 "fetched_at": "2026-10-05T15:36:24.877075+00:00",
 "manifest": {
  "app-id": "io.github.chapdel.whathush",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "26.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "command": "whathush",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--share=network",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--socket=pulseaudio",
   "--device=dri",
   "--device=all",
   "--talk-name=org.freedesktop.Notifications",
   "--talk-name=org.kde.StatusNotifierWatcher",
   "--talk-name=org.freedesktop.ScreenSaver",
   "--talk-name=org.gnome.ScreenSaver",
   "--talk-name=org.freedesktop.secrets",
   "--talk-name=org.kde.kwalletd6",
   "--talk-name=org.kde.kwalletd5",
   "--filesystem=xdg-download",
   "--env=ELECTRON_OZONE_PLATFORM_HINT=auto"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin"
  },
  "modules": [
   {
    "name": "whathush",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/whathush/flatpak-node/cache",
      "npm_config_cache": "/run/build/whathush/flatpak-node/npm-cache",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "npm ci --offline",
     "npm run build",
     ". flatpak-node/electron-builder-arch-args.sh\nnpx electron-builder $ELECTRON_BUILDER_ARCH_ARGS --linux --dir --publish never \\\n  -c.electronDist=flatpak-node/cache/electron\n",
     "cp -a release/linux*unpacked /app/whathush",
     "install -Dm755 whathush.sh /app/bin/whathush",
     "install -Dm644 packaging/linux/io.github.chapdel.whathush.desktop /app/share/applications/io.github.chapdel.whathush.desktop",
     "install -Dm644 packaging/linux/io.github.chapdel.whathush.metainfo.xml /app/share/metainfo/io.github.chapdel.whathush.metainfo.xml",
     "for size in 128 256 512; do\n  install -Dm644 build/icons/${size}x${size}.png /app/share/icons/hicolor/${size}x${size}/apps/io.github.chapdel.whathush.png\ndone\n"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../..",
      "skip": [
       "node_modules",
       "dist",
       "release",
       "test-results",
       "playwright-report",
       "lab/node_modules",
       "lab/dist",
       ".flatpak-builder"
      ]
     },
     "generated-sources.json",
     {
      "type": "script",
      "dest-filename": "whathush.sh",
      "commands": [
       "exec zypak-wrapper /app/whathush/whathush \"$@\""
      ]
     }
    ]
   }
  ]
 }
}