{
 "app_id": "com.thewavewarden.Odin2",
 "source_url": "https://raw.githubusercontent.com/flathub/com.thewavewarden.Odin2/master/com.thewavewarden.Odin2.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "26.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=xdg-documents"
 ],
 "module_count": 4,
 "fetched_at": "2026-09-17T16:08:54.832497+00:00",
 "manifest": {
  "id": "com.thewavewarden.Odin2",
  "runtime": "org.freedesktop.Platform",
  "runtime-version": "26.08",
  "sdk": "org.freedesktop.Sdk",
  "command": "Odin2",
  "finish-args": [
   "--socket=x11",
   "--share=ipc",
   "--socket=pulseaudio",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=xdg-documents",
   "--persist=.local/share/odin2"
  ],
  "cleanup": [
   "/bin/JUCE-*",
   "/include",
   "/lib/cmake",
   "/lib/lv2"
  ],
  "build-options": {
   "env": {
    "PLUGINS_DIR": "/app/extensions/Plugins/Odin2",
    "PLUGINS_ID": "org.freedesktop.LinuxAudio.Plugins.Odin2"
   }
  },
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins.Odin2": {
    "directory": "extensions/Plugins/Odin2",
    "version": "26.08",
    "add-ld-path": "lib",
    "bundle": true,
    "subdirectories": true,
    "no-autodownload": true,
    "autodelete": false
   }
  },
  "modules": [
   "shared-modules/appstream/appstream-compose.json",
   "shared-modules/linux-audio/lv2.json",
   {
    "name": "odin2",
    "buildsystem": "cmake-ninja",
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "no-make-install": true,
    "make-args": [
     "Odin2_Standalone"
    ],
    "post-install": [
     "install -Dm755 Odin2_artefacts/RelWithDebInfo/Standalone/Odin2 -t ${FLATPAK_DEST}/bin",
     "install -Dm644 com.thewavewarden.Odin2.desktop -t ${FLATPAK_DEST}/share/applications",
     "install -Dm644 com.thewavewarden.Odin2.png -t ${FLATPAK_DEST}/share/icons/hicolor/128x128/apps",
     "install -Dm644 com.thewavewarden.Odin2.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/TheWaveWarden/odin2",
      "commit": "265e9e227581357efb87ed7217381f8a40c5e2bf",
      "tag": "v2.4.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/juce-616-header.patch",
       "patches/juce-x11-fix.patch"
      ]
     },
     {
      "type": "file",
      "path": "com.thewavewarden.Odin2.desktop"
     },
     {
      "type": "file",
      "path": "com.thewavewarden.Odin2.png"
     },
     {
      "type": "file",
      "path": "com.thewavewarden.Odin2.metainfo.xml"
     }
    ]
   },
   {
    "name": "odin2-plugins",
    "buildsystem": "cmake-ninja",
    "build-options": {
     "prefix": "/app/extensions/Plugins/Odin2"
    },
    "config-opts": [
     "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
    ],
    "no-make-install": true,
    "make-args": [
     "Odin2_VST3",
     "Odin2_CLAP",
     "Odin2_LV2"
    ],
    "post-install": [
     "install -d ${PLUGINS_DIR}/lv2",
     "cp -R Odin2_artefacts/RelWithDebInfo/LV2/Odin2.lv2 ${PLUGINS_DIR}/lv2/Odin2.lv2",
     "strip --strip-unneeded ${PLUGINS_DIR}/lv2Odin2.so",
     "install -Dm755 Odin2_artefacts/RelWithDebInfo/CLAP/Odin2.clap -t ${PLUGINS_DIR}/clap/",
     "strip --strip-unneeded ${PLUGINS_DIR}/clap/*.clap",
     "install -Dm644 -t ${PLUGINS_DIR}/share/metainfo org.freedesktop.LinuxAudio.Plugins.Odin2.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/TheWaveWarden/odin2",
      "commit": "265e9e227581357efb87ed7217381f8a40c5e2bf",
      "tag": "v2.4.1",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^v([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/juce-616-header.patch",
       "patches/juce-x11-fix.patch"
      ]
     },
     {
      "type": "file",
      "path": "org.freedesktop.LinuxAudio.Plugins.Odin2.metainfo.xml"
     }
    ]
   }
  ]
 }
}