{
 "app_id": "fm.helio.Workstation",
 "source_url": "https://raw.githubusercontent.com/flathub/fm.helio.Workstation/master/fm.helio.Workstation.json",
 "runtime": "org.freedesktop.Platform",
 "runtime_version": "25.08",
 "sdk": "org.freedesktop.Sdk",
 "finish_args": [
  "--share=ipc",
  "--socket=pulseaudio",
  "--socket=x11",
  "--device=all",
  "--filesystem=xdg-run/pipewire-0",
  "--filesystem=home"
 ],
 "module_count": 1,
 "fetched_at": "2026-09-17T16:09:54.311478+00:00",
 "manifest": {
  "id": "fm.helio.Workstation",
  "runtime": "org.freedesktop.Platform",
  "sdk": "org.freedesktop.Sdk",
  "runtime-version": "25.08",
  "command": "helio",
  "rename-icon": "helio-workstation",
  "rename-desktop-file": "Helio.desktop",
  "finish-args": [
   "--share=ipc",
   "--socket=x11",
   "--socket=pulseaudio",
   "--device=all",
   "--filesystem=xdg-run/pipewire-0",
   "--filesystem=home",
   "--env=VST_PATH=/app/extensions/Plugins/vst",
   "--env=VST3_PATH=/app/extensions/Plugins/vst3"
  ],
  "add-extensions": {
   "org.freedesktop.LinuxAudio.Plugins": {
    "directory": "extensions/Plugins",
    "version": "25.08",
    "add-ld-path": "lib",
    "merge-dirs": "vst;vst3",
    "subdirectories": true,
    "no-autodownload": true
   }
  },
  "modules": [
   {
    "name": "helio-workstation",
    "buildsystem": "simple",
    "build-commands": [
     "make CONFIG=Release64 -C Projects/LinuxMakefile -j $FLATPAK_BUILDER_N_JOBS"
    ],
    "post_install": [
     "install -Dm755 Projects/LinuxMakefile/build/helio ${FLATPAK_DEST}/bin/helio.bin",
     "install -Dm755 helio.sh ${FLATPAK_DEST}/bin/helio",
     "install -Dm644 Projects/Deployment/Linux/fm.helio.Workstation.metainfo.xml -t ${FLATPAK_DEST}/share/metainfo",
     "install -Dm644 Projects/Deployment/Linux/Debian/x64/usr/share/applications/Helio.desktop -t ${FLATPAK_DEST}/share/applications",
     "desktop-file-edit --set-key=Exec --set-value=helio ${FLATPAK_DEST}/share/applications/Helio.desktop",
     "cp -a Projects/Deployment/Linux/Debian/x64/usr/share/icons ${FLATPAK_DEST}/share/",
     "install -d /app/extensions/Plugins"
    ],
    "sources": [
     {
      "type": "git",
      "url": "https://github.com/helio-fm/helio-workstation/",
      "tag": "3.18",
      "commit": "3fd7a39bd60282003ffaed900eb648ac3fcdb710",
      "x-checker-data": {
       "type": "git",
       "tag-pattern": "^([\\d.]+)$"
      }
     },
     {
      "type": "patch",
      "paths": [
       "patches/helio-build.patch",
       "patches/helio-appdata.patch",
       "patches/juce-vst3-path.patch"
      ]
     },
     {
      "type": "script",
      "commands": [
       "exec /app/bin/helio.bin \"$@\""
      ],
      "dest-filename": "helio.sh"
     }
    ]
   }
  ]
 }
}