{
 "app_id": "com.chowdsp.BYOD",
 "source_url": "https://raw.githubusercontent.com/flathub/com.chowdsp.BYOD/master/com.chowdsp.BYOD.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=dri",
  "--filesystem=xdg-run/pipewire-0"
 ],
 "module_count": 3,
 "fetched_at": "2026-09-17T16:07:07.898795+00:00",
 "manifest": {
  "id": "com.chowdsp.BYOD",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "26.08",
  "command": "BYOD",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--device=dri",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0"
  ],
  "build-options": {
   "env": {
    "PLUGINS_DIR": "/app/extensions/Plugins/BYOD",
    "PLUGINS_ID": "org.freedesktop.LinuxAudio.Plugins.BYOD"
   }
  },
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins.BYOD": {
    "directory": "extensions/Plugins/BYOD",
    "version": "26.08",
    "add-ld-path": "lib",
    "bundle": true,
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false
   }
  },
  "cleanup": [
   "/bin/JUCE-*",
   "/include",
   "/share/doc/lv2",
   "/share/lv2*",
   "/lib/cmake",
   "/lib/lv2",
   "/lib/pkgconfig"
  ],
  "modules": [
   "shared-modules/appstream/appstream-compose.json",
   "shared-modules/linux-audio/lv2.json",
   {
    "name": "byod",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "cxxflags": "-Wno-error=template-body",
     "env": {
      "CPM_SOURCE_CACHE": "/run/build/byod/.cache/CPM"
     }
    },
    "config-opts": [
     "-DCMAKE_AR=/usr/bin/gcc-ar",
     "-DCMAKE_NM=/usr/bin/gcc-nm",
     "-DCMAKE_RANLIB=/usr/bin/gcc-ranlib",
     "-DBYOD_BUILD_CLAP=ON",
     "-DBUILD_RELEASE=ON",
     "-DCMAKE_BUILD_TYPE=Release"
    ],
    "post-install": [
     "install -d ${PLUGINS_DIR}/vst3",
     "cp -R BYOD_artefacts/Release/VST3/BYOD.vst3 ${PLUGINS_DIR}/vst3",
     "install -d ${PLUGINS_DIR}/lv2",
     "cp -R BYOD_artefacts/Release/LV2/BYOD.lv2 ${PLUGINS_DIR}/lv2",
     "install -Dm755 BYOD_artefacts/Release/CLAP/BYOD.clap -t ${PLUGINS_DIR}/clap",
     "install -Dm755 BYOD_artefacts/Release/Standalone/BYOD -t ${FLATPAK_DEST}/bin",
     "install -Dm644 res/logo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg",
     "install -Dm644 com.chowdsp.BYOD.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm644 com.chowdsp.BYOD.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo",
     "install -Dm644 org.freedesktop.LinuxAudio.Plugins.BYOD.metainfo.xml -t ${PLUGINS_DIR}/share/metainfo/",
     "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/Chowdhury-DSP/BYOD.git",
      "tag": "v1.3.0",
      "commit": "3562e3cd4dc569d526aa4610da7a17f79ab5211f",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "file",
      "url": "https://github.com/cpm-cmake/CPM.cmake/releases/download/v0.38.6/CPM.cmake",
      "sha256": "11c3fa5f1ba14f15d31c2fb63dbc8628ee133d81c8d764caad9a8db9e0bacb07",
      "dest": ".cache/CPM/cpm",
      "dest-filename": "CPM_0.38.6.cmake"
     },
     {
      "type": "patch",
      "paths": [
       "patches/juce-xdg-path.patch"
      ],
      "options": [
       "-d",
       "modules/JUCE"
      ]
     },
     {
      "type": "file",
      "path": "com.chowdsp.BYOD.desktop"
     },
     {
      "type": "file",
      "path": "com.chowdsp.BYOD.metainfo.xml"
     },
     {
      "type": "file",
      "path": "org.freedesktop.LinuxAudio.Plugins.BYOD.metainfo.xml"
     }
    ]
   }
  ]
 }
}