{
 "app_id": "net.sonobus.SonoBus",
 "source_url": "https://raw.githubusercontent.com/flathub/net.sonobus.SonoBus/master/net.sonobus.SonoBus.yaml",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=network",
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=dri",
  "--filesystem=xdg-download",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-music"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:13:46.577698+00:00",
 "manifest": {
  "app-id": "net.sonobus.SonoBus",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "command": "sonobus",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--device=dri",
   "--share=network",
   "--socket=pulseaudio",
   "--filesystem=xdg-download",
   "--filesystem=xdg-music",
   "--filesystem=xdg-run/pipewire-0",
   "--persist=.config"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins.SonoBus": {
    "directory": "extensions/Plugins/SonoBus",
    "version": "25.08",
    "add-ld-path\"": "lib",
    "bundle": true,
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false
   }
  },
  "build-options": {
   "env": {
    "PLUGINS_DIR": "/app/extensions/Plugins/SonoBus",
    "PLUGINS_ID": "org.freedesktop.LinuxAudio.Plugins.SonoBus"
   }
  },
  "modules": [
   {
    "name": "SonoBus",
    "buildsystem": "cmake-ninja",
    "post-install": [
     "install -Dm755 SonoBus_artefacts/Standalone/sonobus /app/bin/sonobus",
     "install -D images/SonoBus-Icon.svg /app/share/icons/hicolor/scalable/apps/$FLATPAK_ID.svg",
     "install -Dm644 $FLATPAK_ID.metainfo.xml /app/share/metainfo/$FLATPAK_ID.metainfo.xml",
     "install -Dm644 linux/sonobus.desktop /app/share/applications/${FLATPAK_ID}.desktop",
     "desktop-file-edit --set-icon=${FLATPAK_ID} /app/share/applications/${FLATPAK_ID}.desktop",
     "install -d ${FLATPAK_DEST}/extensions/Plugins/SonoBus/vst3",
     "cp -R SonoBus_artefacts/VST3/*.vst3 ${FLATPAK_DEST}/extensions/Plugins/SonoBus/vst3",
     "cp -R SonoBusInst_artefacts/VST3/*.vst3 ${FLATPAK_DEST}/extensions/Plugins/SonoBus/vst3",
     "install -Dm644 -t ${FLATPAK_DEST}/extensions/Plugins/SonoBus/share/metainfo org.freedesktop.LinuxAudio.Plugins.SonoBus.metainfo.xml",
     "appstreamcli compose --components=${PLUGINS_ID} --prefix=/ --origin=${PLUGINS_ID} --result-root=${PLUGINS_DIR} --data-dir=${PLUGINS_DIR}/share/app-info/xmls ${PLUGINS_DIR}"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/sonosaurus/sonobus/",
      "tag": "1.7.2",
      "commit": "35f1062dab196b9838a4bb529c4bf6592b7f5987",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "([\\d.]+)$"
      }
     },
     {
      "type": "file",
      "path": "net.sonobus.SonoBus.metainfo.xml"
     },
     {
      "type": "file",
      "path": "org.freedesktop.LinuxAudio.Plugins.SonoBus.metainfo.xml"
     }
    ]
   }
  ]
 }
}