{
 "app_id": "com.hperrin.StreamOverlay",
 "source_url": "https://raw.githubusercontent.com/flathub/com.hperrin.StreamOverlay/master/com.hperrin.StreamOverlay.yml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "24.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-documents",
  "--filesystem=xdg-download"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:08:01.346111+00:00",
 "manifest": {
  "id": "com.hperrin.StreamOverlay",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "24.08",
  "sdk": "org.freedesktop.Sdk",
  "base": "org.electronjs.Electron2.BaseApp",
  "base-version": "24.08",
  "sdk-extensions": [
   "org.freedesktop.Sdk.Extension.node22"
  ],
  "command": "run.sh",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--share=network",
   "--device=dri",
   "--filesystem=xdg-documents",
   "--filesystem=xdg-download"
  ],
  "build-options": {
   "append-path": "/usr/lib/sdk/node22/bin",
   "env": {
    "NPM_CONFIG_LOGLEVEL": "info"
   }
  },
  "modules": [
   {
    "name": "stream-overlay",
    "buildsystem": "simple",
    "build-options": {
     "env": {
      "XDG_CACHE_HOME": "/run/build/stream-overlay/flatpak-node/cache",
      "npm_config_cache": "/run/build/stream-overlay/flatpak-node/npm-cache",
      "npm_config_nodedir": "/usr/lib/sdk/node22",
      "npm_config_offline": "true"
     }
    },
    "build-commands": [
     "bash build-flatpak.sh",
     "cp -a source/dist/linux*unpacked /app/main",
     "install -Dm755 -t /app/bin/ ./run.sh",
     "install -D -m644 -t /app/share/applications ./source/com.hperrin.StreamOverlay.desktop",
     "install -D -m644 -t /app/share/metainfo ./source/com.hperrin.StreamOverlay.metainfo.xml",
     "install -D -m644 -t /app/share/mime/packages/ ./source/com.hperrin.StreamOverlay.mime.xml",
     "install -D -m644 -T ./source/app/assets/512x512.png /app/share/icons/hicolor/512x512/apps/com.hperrin.StreamOverlay.png",
     "install -D -m644 -T ./source/app/assets/logo.svg /app/share/icons/hicolor/scalable/apps/com.hperrin.StreamOverlay.svg"
    ],
    "sources": [
     "generated-sources.json",
     {
      "type": "git",
      "url": "https://github.com/hperrin/stream-overlay.git",
      "commit": "4d246f7838719e4428c648fd1bc8412c0f3a5202",
      "dest": "source"
     },
     {
      "type": "file",
      "path": "build-flatpak.sh"
     },
     {
      "type": "script",
      "dest-filename": "run.sh",
      "commands": [
       "zypak-wrapper.sh /app/main/stream-overlay \"$@\""
      ]
     }
    ]
   }
  ]
 }
}