build(windows): dereference plugin-tree symlinks when bundling

rig_builder now ships vst/src/{pedals,racks}/_shared -> ../_shared; Git
Bash cp -R fails to recreate symlinks without SeCreateSymbolicLink. The
bundle wants real files anyway — copy with -L.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
OmikronApex 2026-07-17 19:45:40 +02:00
parent 1359c7c24d
commit 503f665865

View File

@ -121,7 +121,11 @@ copy_plugin() {
local dst="$2"
mkdir -p "$dst"
# Use cp -R rather than -r for portable symlink-following semantics.
cp -R "$src/." "$dst/"
# -L dereferences symlinks INSIDE the tree (rig_builder's
# vst/src/*/_shared -> ../_shared): Git Bash cannot create symlinks
# without Developer Mode / SeCreateSymbolicLink, and the bundle wants
# real files anyway.
cp -RL "$src/." "$dst/"
find "$dst" -name '.git' -type d -prune -exec rm -rf {} +
}