#!/usr/bin/env bash
# Install Tunnels VST3 into the user-scope plug-in folder.
set -euo pipefail

src="$(cd "$(dirname "$0")" && pwd)"
vst3_dest="$HOME/.vst3"

[[ -d "$src/Tunnels.vst3" ]] || { echo "Tunnels.vst3 not found next to this script" >&2; exit 1; }

mkdir -p "$vst3_dest"
rm -rf "$vst3_dest/Tunnels.vst3"
cp -R "$src/Tunnels.vst3" "$vst3_dest/"
echo "Installed $vst3_dest/Tunnels.vst3"
echo "Done. Restart your DAW to scan."
