From cb5944b1281fe34c3455cd531db22e3fbe094d7d Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Wed, 15 Jul 2020 16:56:48 +0200 Subject: [PATCH] Mention the bash snippets in yabridgectl readme --- README.md | 3 +++ tools/yabridgectl/README.md | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/README.md b/README.md index 3cd92624..db928931 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,9 @@ Please let me know if there are any issues with other VST hosts. ## Usage +TODO: Refactor these sections to refer to yabridgectl for most of the setup. +Manual setup can be moved to its own section. + You can either download a prebuilt version of yabridge through the GitHub [releases](https://github.com/robbert-vdh/yabridge/releases) section, or you can compile it from source using the instructions in the [build](#Building) section diff --git a/tools/yabridgectl/README.md b/tools/yabridgectl/README.md index fe772045..6a2e17e9 100644 --- a/tools/yabridgectl/README.md +++ b/tools/yabridgectl/README.md @@ -66,6 +66,33 @@ yabridgectl sync yabridgectl sync --prune ``` +## Alternatives + +If you want to script your own installation behaviour and don't feel like using +yabridgectl, then you could use one of the below bash snippets as a base. This +approach is slightly less robust and does not do any problem detection or status +reporting, but it will get you started. + +```shell +# For use with symlinks +yabridge_home=$HOME/.local/share/yabridge +plugin_dir="$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins" + +find -L "$plugin_dir" -type f -iname '*.dll' -print0 | + xargs -0 -P$(nproc) -I{} bash -c "(winedump -j export '{}' | grep -qE 'VSTPluginMain|main|main_plugin') && printf '{}\0'" | + sed -z 's/\.dll$/.so/' | + xargs -0 -n1 ln -sf "$yabridge_home/libyabridge.so" + +# For use with copies +yabridge_home=$HOME/.local/share/yabridge +plugin_dir="$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins" + +find -L "$plugin_dir" -type f -iname '*.dll' -print0 | + xargs -0 -P$(nproc) -I{} bash -c "(winedump -j export '{}' | grep -qE 'VSTPluginMain|main|main_plugin') && printf '{}\0'" | + sed -z 's/\.dll$/.so/' | + xargs -0 -n1 cp "$yabridge_home/libyabridge.so" +``` + ## Building After installing [Rust](https://rustup.rs/), simply run the below to compile and