{
 "app_id": "io.github.jm2.Balun",
 "source_url": "https://raw.githubusercontent.com/jm2/balun/main/build-aux/flatpak/io.github.jm2.Balun.yml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "50",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--socket=wayland",
  "--socket=fallback-x11",
  "--share=ipc",
  "--socket=pulseaudio",
  "--share=network",
  "--device=dri"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-21T19:41:25.564049+00:00",
 "manifest": {
  "app-id": "io.github.jm2.Balun",
  "runtime": "org.gnome.Platform",
  "runtime-version": "50",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "command": "balun",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri"
  ],
  "add-extensions": {
   "org.freedesktop.Platform.ffmpeg-full": {
    "directory": "lib/ffmpeg",
    "version": "25.08",
    "add-ld-path": ".",
    "no-autodownload": false,
    "autodelete": false
   }
  },
  "cleanup-commands": [
   "mkdir -p /app/lib/ffmpeg"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/rust-stable/bin",
   "env": {
    "CARGO_HOME": "/run/build/balun/cargo",
    "CARGO_NET_OFFLINE": "true"
   }
  },
  "modules": [
   {
    "name": "balun",
    "buildsystem": "simple",
    "build-commands": [
     "cargo build --offline --locked --release --features desktop --bin balun",
     "install -Dm0755 target/release/balun /app/bin/balun",
     "install -Dm0644 data/io.github.jm2.Balun.desktop /app/share/applications/io.github.jm2.Balun.desktop",
     "install -Dm0644 data/io.github.jm2.Balun.metainfo.xml /app/share/metainfo/io.github.jm2.Balun.metainfo.xml",
     "for size in 16 24 32 48 64 128 256 512; do install -Dm0644 \"data/icons/hicolor/${size}x${size}/apps/io.github.jm2.Balun.png\" \"/app/share/icons/hicolor/${size}x${size}/apps/io.github.jm2.Balun.png\"; done",
     "install -Dm0644 data/icons/hicolor/scalable/apps/io.github.jm2.Balun.svg /app/share/icons/hicolor/scalable/apps/io.github.jm2.Balun.svg",
     "install -Dm0644 data/icons/hicolor/symbolic/apps/io.github.jm2.Balun-symbolic.svg /app/share/icons/hicolor/symbolic/apps/io.github.jm2.Balun-symbolic.svg",
     "for factory in playbin3 uridecodebin3 decodebin3 appsrc tsdemux deinterlace gtk4paintablesink; do gst-inspect-1.0 --exists \"$factory\" || { echo \"runtime lacks GStreamer factory $factory\" >&2; exit 1; }; done",
     "bash build-aux/linux/validate-package-compliance.sh --tree /app"
    ],
    "sources": [
     {
      "type": "dir",
      "path": "../..",
      "skip": [
       ".git",
       ".claude",
       ".codex",
       ".flatpak-builder",
       ".venv-flatpak",
       "balun.flatpak",
       "build-dir",
       "cargo-sources.json",
       "coverage",
       "dist",
       "repo",
       "target",
       "build-aux/flatpak/cargo-sources.json"
      ]
     },
     "cargo-sources.json"
    ]
   }
  ]
 }
}