{
 "app_id": "com.github.sarcastic_soul.Foolscap",
 "source_url": "https://raw.githubusercontent.com/Sarcastic-Soul/Foolscap/main/packaging/flatpak/com.github.sarcastic_soul.Foolscap.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "47",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=wayland",
  "--socket=fallback-x11",
  "--device=dri",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-download"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T13:02:08.473096+00:00",
 "manifest": {
  "app-id": "com.github.sarcastic_soul.Foolscap",
  "runtime": "org.gnome.Platform",
  "runtime-version": "47",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "foolscap-gui",
  "finish-args": [
   "--share=ipc",
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/foolscap/cargo"
   }
  },
  "modules": [
   {
    "name": "foolscap",
    "buildsystem": "simple",
    "build-commands": [
     "cargo --offline fetch --manifest-path Cargo.toml",
     "cargo --offline build --release -p foolscap-cli --features render,convert,ocr",
     "cargo --offline build --release -p foolscap-gui",
     "install -Dm755 target/release/foolscap /app/bin/foolscap",
     "install -Dm755 target/release/foolscap-gui /app/bin/foolscap-gui",
     "install -Dm644 packaging/foolscap.desktop /app/share/applications/com.github.sarcastic_soul.Foolscap.desktop",
     "install -Dm644 packaging/foolscap.svg /app/share/icons/hicolor/scalable/apps/com.github.sarcastic_soul.Foolscap.svg"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../.."
     }
    ]
   }
  ]
 }
}