{
 "app_id": "com.github.p13marc.ZenSight",
 "source_url": "https://raw.githubusercontent.com/p13marc/zensight/master/flatpak/com.github.p13marc.ZenSight.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--device=dri",
  "--share=network",
  "--filesystem=xdg-config/zensight:create"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-21T19:41:13.641737+00:00",
 "manifest": {
  "app-id": "com.github.p13marc.ZenSight",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "zensight",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--device=dri",
   "--share=network",
   "--filesystem=xdg-config/zensight:create"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/zensight/cargo",
    "RUST_BACKTRACE": "1"
   }
  },
  "modules": [
   {
    "name": "zensight",
    "buildsystem": "simple",
    "build-options": {
     "build-args": [
      "--share=network"
     ]
    },
    "build-commands": [
     "set -eu\nhave=$(rustc --version | cut -d' ' -f2)\nwant=$(grep -m1 '^rust-version' Cargo.toml | cut -d'\"' -f2)\necho \"flatpak SDK rustc $have; workspace rust-version $want\"\nlowest=$(printf '%s\\n%s\\n' \"$have\" \"$want\" | sort -V | head -1)\nif [ \"$lowest\" != \"$want\" ] && [ \"$have\" != \"$want\" ]; then\n  echo \"ERROR: the SDK's rustc $have is older than the workspace's rust-version $want\" >&2\n  exit 1\nfi\n",
     "cargo fetch --locked --manifest-path Cargo.toml",
     "cargo build --release --locked -p zensight",
     "install -Dm755 target/release/zensight ${FLATPAK_DEST}/bin/zensight",
     "install -Dm644 flatpak/com.github.p13marc.ZenSight.desktop ${FLATPAK_DEST}/share/applications/com.github.p13marc.ZenSight.desktop",
     "install -Dm644 flatpak/com.github.p13marc.ZenSight.metainfo.xml ${FLATPAK_DEST}/share/metainfo/com.github.p13marc.ZenSight.metainfo.xml",
     "install -Dm644 flatpak/icons/hicolor/scalable/apps/com.github.p13marc.ZenSight.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/com.github.p13marc.ZenSight.svg",
     "install -Dm644 flatpak/icons/hicolor/symbolic/apps/com.github.p13marc.ZenSight-symbolic.svg ${FLATPAK_DEST}/share/icons/hicolor/symbolic/apps/com.github.p13marc.ZenSight-symbolic.svg"
    ],
    "sources": [
     {
      "type": "dir",
      "path": ".."
     }
    ]
   }
  ]
 }
}