{
 "app_id": "com.bespokesynth.BespokeSynth",
 "source_url": "https://raw.githubusercontent.com/flathub/com.bespokesynth.BespokeSynth/master/com.bespokesynth.BespokeSynth.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=x11",
  "--socket=pulseaudio",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=home"
 ],
 "module_count": 2,
 "fetched_at": "2026-09-17T16:06:58.026448+00:00",
 "manifest": {
  "id": "com.bespokesynth.BespokeSynth",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "25.08",
  "sdk": "org.freedesktop.Sdk",
  "rename-desktop-file": "BespokeSynth.desktop",
  "rename-icon": "bespoke_icon",
  "command": "BespokeSynth",
  "finish-args": [
   "--share=ipc",
   "--device=all",
   "--socket=x11",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=home"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "vst3;lv2",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "modules": [
   {
    "name": "youtube-dl",
    "no-autogen": true,
    "no-make-install": true,
    "make-args": [
     "youtube-dl",
     "PYTHON=/usr/bin/python3"
    ],
    "post-install": [
     "install -Dm755 youtube-dl -t /app/bin"
    ],
    "sources": [
     {
      "type": "archive",
      "url": "https://github.com/ytdl-org/youtube-dl/releases/download/2021.12.17/youtube-dl-2021.12.17.tar.gz",
      "sha256": "9f3b99c8b778455165b4525f21505e86c7ff565f3ac319e19733d810194135df",
      "x-checker-data": {
       "type": "anitya",
       "project-id": 5292,
       "url-template": "https://github.com/ytdl-org/youtube-dl/releases/download/$version/youtube-dl-$version.tar.gz"
      }
     }
    ]
   },
   {
    "name": "bespoke",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_POLICY_VERSION_MINIMUM=3.5",
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "post-install": [
     "install -d /app/extensions/Plugins",
     "install -Dm644 com.bespokesynth.BespokeSynth.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo/",
     "mv /app/bin/BespokeSynth /app/bin/BespokeSynth.bin",
     "install -Dm755 bespokesynth.sh /app/bin/BespokeSynth"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/BespokeSynth/BespokeSynth.git",
      "tag": "v1.3.0",
      "commit": "1d0f0429d9b56f1b120b0b95f0a173cc02787e53",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/bespoke-build-fixes.patch"
      ]
     },
     {
      "type": "patch",
      "paths": [
       "patches/bespoke-juce-vst3-path.patch",
       "patches/bespoke-juce-lv2-path.patch"
      ],
      "options": [
       "-d",
       "libs/JUCE"
      ]
     },
     {
      "type": "script",
      "commands": [
       "exec /app/bin/BespokeSynth.bin \"$@\""
      ],
      "dest-filename": "bespokesynth.sh"
     },
     {
      "type": "file",
      "path": "com.bespokesynth.BespokeSynth.metainfo.xml"
     }
    ]
   }
  ]
 }
}