{
 "app_id": "dev.fredol.open-tv",
 "source_url": "https://raw.githubusercontent.com/flathub/dev.fredol.open-tv/master/dev.fredol.open-tv.yaml",
 "runtime": "org.gnome.Platform",
 "runtime_version": "49",
 "sdk": "org.gnome.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=wayland",
  "--socket=pulseaudio",
  "--socket=fallback-x11",
  "--device=dri",
  "--talk-name=org.gnome.SessionManager"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:09:33.910088+00:00",
 "manifest": {
  "id": "dev.fredol.open-tv",
  "runtime": "org.gnome.Platform",
  "runtime-version": "49",
  "sdk": "org.gnome.Sdk",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node20",
   "org.freedesktop.Sdk.Extension.rust-stable"
  ],
  "base": "io.mpv.Mpv",
  "base-version": "stable",
  "build-options": {
   "append-path": "/usr/lib/sdk/node20/bin:/usr/lib/sdk/rust-stable/bin"
  },
  "command": "open_tv",
  "finish-args": [
   "--socket=wayland",
   "--socket=fallback-x11",
   "--device=dri",
   "--share=ipc",
   "--share=network",
   "--socket=pulseaudio",
   "--env=XCURSOR_PATH=/run/host/user-share/icons:/run/host/share/icons",
   "--env=WEBKIT_DISABLE_DMABUF_RENDERER=1",
   "--talk-name=org.gnome.SessionManager"
  ],
  "modules": [
   {
    "name": "opentv",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/opentv/flatpak-node/cache",
      "npm_config_cache": "/run/build/opentv/flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "CARGO_HOME": "/run/build/opentv/cargo"
     }
    },
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Fredolx/open-tv",
      "commit": "8fac47df85d4b242b0de317cb068c509303f89f2"
     },
     "generated-sources.json",
     "cargo-sources.json"
    ],
    "build-commands": [
     "npm install --offline --verbose",
     "cargo --offline fetch --manifest-path src-tauri/Cargo.toml --verbose",
     "npm run tauri build -- --no-bundle",
     "install -Dm755 src-tauri/target/release/open_tv /app/bin/open_tv",
     "install -Dm644 flatpak/open_tv.desktop /app/share/applications/dev.fredol.open-tv.desktop",
     "install -Dm644 flatpak/dev.fredol.open-tv.metainfo.xml /app/share/metainfo/dev.fredol.open-tv.metainfo.xml",
     "install -Dm644 src-tauri/icons/128x128.png /app/share/icons/hicolor/128x128/apps/dev.fredol.open-tv.png",
     "install -Dm644 src-tauri/icons/32x32.png /app/share/icons/hicolor/32x32/apps/dev.fredol.open-tv.png",
     "install -Dm644 src-tauri/icons/icon.png /app/share/icons/hicolor/256x256@2/apps/dev.fredol.open-tv.png"
    ]
   }
  ]
 }
}