{
 "app_id": "to.bnt.sendworm",
 "source_url": "https://raw.githubusercontent.com/flathub/to.bnt.sendworm/master/to.bnt.sendworm.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-download"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:17:30.574927+00:00",
 "manifest": {
  "app-id": "to.bnt.sendworm",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node24",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "sendworm",
  "rename-icon": "sendworm",
  "rename-desktop-file": "Sendworm.desktop",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--filesystem=xdg-download"
  ],
  "modules": [
   {
    "name": "sendworm",
    "buildsystem": "simple",
    "build-options": {
     "append-path": "/usr/lib/sdk/node24/bin:/usr/lib/sdk/rust-stable/bin",
     "env": {
      "CARGO_NET_OFFLINE": "true",
      "CARGO_HOME": "/run/build/sendworm/cargo",
      "npm_config_offline": "true",
      "npm_config_cache": "/run/build/sendworm/flatpak-node/npm-cache"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/ubuntuegor/sendworm",
      "tag": "v1.0.3",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      },
      "commit": "d933961ea13b6e2edb33baafd7e1b5857f59b312"
     },
     "node-sources.json",
     "cargo-sources.json"
    ],
    "build-commands": [
     "npm ci",
     "cargo fetch --manifest-path src-tauri/Cargo.toml",
     "npm run tauri build -- -b deb",
     "install -Dm755 -t ${FLATPAK_DEST}/bin/ src-tauri/target/release/bundle/deb/*/data/usr/bin/sendworm",
     "install -Dm644 -t ${FLATPAK_DEST}/share/metainfo/ src-tauri/target/release/bundle/deb/*/data/usr/share/metainfo/${FLATPAK_ID}.metainfo.xml",
     "install -Dm644 -t ${FLATPAK_DEST}/share/applications/ src-tauri/target/release/bundle/deb/*/data/usr/share/applications/Sendworm.desktop",
     "install -Dm644 src-tauri/icons/32x32.png ${FLATPAK_DEST}/share/icons/hicolor/32x32/apps/sendworm.png",
     "install -Dm644 src-tauri/icons/128x128.png ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps/sendworm.png",
     "install -Dm644 src-tauri/icons/128x128@2x.png ${FLATPAK_DEST}/share/icons/hicolor/256x256/apps/sendworm.png",
     "install -Dm644 src-tauri/icons/icon.png ${FLATPAK_DEST}/share/icons/hicolor/256x256@2/apps/sendworm.png"
    ]
   }
  ]
 }
}