{
 "app_id": "io.github.Geocld.XStreamingDesktop",
 "source_url": "https://raw.githubusercontent.com/flathub/io.github.Geocld.XStreamingDesktop/master/io.github.Geocld.XStreamingDesktop.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--share=network",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=/run/udev:ro",
  "--allow=bluetooth"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-20T15:22:25.589290+00:00",
 "manifest": {
  "app-id": "io.github.Geocld.XStreamingDesktop",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "25.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node20"
  ],
  "command": "run.sh",
  "separate-locales": false,
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--allow=bluetooth",
   "--device=all",
   "--filesystem=/run/udev:ro"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node20/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "XStreamingDesktop",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/XStreamingDesktop/flatpak-node/cache",
      "npm_config_cache": "/run/build/XStreamingDesktop/flatpak-node/npm-cache",
      "npm_config_offline": "true",
      "yarn_config_cache": "/run/build/XStreamingDesktop/flatpak-node/yarn-mirror"
     }
    },
    "build-commands": [
     "yarn --offline",
     "yarn run flatpak-build --offline -- --linux",
     "install -Dm 644 flatpak/io.github.Geocld.XStreamingDesktop.png ${FLATPAK_DEST}/share/icons/hicolor/512x512/apps/${FLATPAK_ID}.png",
     "install -Dm 644 flatpak/io.github.Geocld.XStreamingDesktop.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop",
     "install -Dm 644 flatpak/io.github.Geocld.XStreamingDesktop.metainfo.xml ${FLATPAK_DEST}/share/metainfo/${FLATPAK_ID}.appdata.xml",
     "cp -a dist/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ../run.sh"
    ],
    "subdir": "main",
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/Geocld/XStreamingDesktop",
      "tag": "v1.10.2",
      "commit": "0e4b661254cdacba2afcecad5fd9ff3068f91beb",
      "dest": "main"
     },
     "yarn-sources.json",
     {
      "type": "inline",
      "dest-filename": ".yarnrc",
      "contents": "yarn-offline-mirror \"/run/build/XStreamingDesktop/flatpak-node/yarn-mirror\"\nyarn-offline-mirror-pruning true\n"
     },
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/xstreaming \"$@\""
      ]
     }
    ]
   }
  ]
 }
}