{
 "app_id": "io.github.neil_morrison44.pocket-sync",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.neil_morrison44.pocket-sync/master/io.github.neil_morrison44.pocket-sync.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=fallback-x11",
  "--socket=wayland",
  "--device=dri",
  "--filesystem=/run/media"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:11:51.849411+00:00",
 "manifest": {
  "app-id": "io.github.neil_morrison44.pocket-sync",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node20",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "pocket-sync",
  "rename-icon": "pocket-sync",
  "separate-locales": false,
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--share=network",
   "--device=dri",
   "--filesystem=/run/media"
  ],
  "modules": [
   {
    "name": "pocket-sync",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin",
     "env": {
      "npm_config_nodedir": "/usr/lib/sdk/node20",
      "npm_config_offline": "true",
      "CARGO_HOME": "/run/build/pocket-sync/cargo"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/neil-morrison44/pocket-sync",
      "tag": "v6.4.0",
      "x-checker-data": {
       "type": "git"
      },
      "commit": "f59bdc30eebda6707fe3dce79dda8dda426d3f02"
     },
     "node-sources.json",
     "cargo-sources.json",
     {
      "type": "patch",
      "path": "0001-Disable-Tauri-auto-updater.patch"
     },
     {
      "type": "file",
      "path": "io.github.neil_morrison44.pocket-sync.metainfo.xml"
     },
     {
      "type": "file",
      "path": "io.github.neil_morrison44.pocket-sync.desktop"
     }
    ],
    "build-commands": [
     "npm ci --offline --cache=$FLATPAK_BUILDER_BUILDDIR/flatpak-node/npm-cache",
     "cargo --offline fetch --manifest-path src-tauri/Cargo.toml",
     "npm run --offline tauri build -- -b deb",
     "install -Dm755 -t /app/bin/ src-tauri/target/release/bundle/deb/*/data/usr/bin/*",
     "mkdir -p /app/share/icons/hicolor",
     "cp -r src-tauri/target/release/bundle/deb/*/data/usr/share/icons/hicolor/* /app/share/icons/hicolor/",
     "mv /app/share/icons/hicolor/256x256@2/ /app/share/icons/hicolor/256x256/",
     "install -Dm644 -t /app/share/metainfo/ io.github.neil_morrison44.pocket-sync.metainfo.xml",
     "install -Dm644 -t /app/share/applications/ io.github.neil_morrison44.pocket-sync.desktop"
    ]
   }
  ]
 }
}