Flatten nested Presets/<category>/*.xml into a single dir

gin's loadDirectory() doesn't recurse, and the legacy BinaryData flow stored
presets flat in the user dir. Installer/build.sh now stages a flat copy under
Installer/_flat_presets/ which the Inno Setup script and macOS pkg both
consume; CMakeLists installs the same flat set on Linux.
This commit is contained in:
Roland Rabien 2026-04-29 13:43:18 -07:00
commit 8e068f7104
4 changed files with 21 additions and 6 deletions

View file

@ -268,10 +268,12 @@ if (UNIX AND NOT APPLE)
DESTINATION lib/clap
COMPONENT CLAP)
install (DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/plugin/Resources/Presets/"
# Presets ship flat — gin's loadDirectory doesn't recurse, and the pre-installer
# BinaryData flow stored them flat in the user dir.
file (GLOB_RECURSE _preset_xmls "${CMAKE_CURRENT_SOURCE_DIR}/plugin/Resources/Presets/*.xml")
install (FILES ${_preset_xmls}
DESTINATION share/SocaLabs/${PLUGIN_NAME}/Presets
COMPONENT Resources
FILES_MATCHING PATTERN "*.xml")
COMPONENT Resources)
install (DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/plugin/Resources/WavetablesFLAC/"
DESTINATION share/SocaLabs/${PLUGIN_NAME}/Wavetables