From dae7384de368cd9b95a225d9f000f23596ca987b Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Thu, 16 Apr 2020 01:36:00 +0200 Subject: [PATCH] Modify installation oneliner to ignore non-VSTs --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6ec86e1d..6cbe44aa 100644 --- a/README.md +++ b/README.md @@ -51,11 +51,13 @@ ln -s ~/.local/share/yabridge/libyabridge.so "$HOME/.wine/drive_c/Program Files/ ``` For instance, if you wanted to set up yabridge for any of the VST plugins under -`~/.wine/drive_c/Program Files/Steinberg/VstPlugins`, you could do something -like this: +`~/.wine/drive_c/Program Files/Steinberg/VstPlugins`, you could run this +oneliner in Bash. This will also skip any `.dll` files that are not actually VST +plugins. ```shell find "$HOME/.wine/drive_c/Program Files/Steinberg/VstPlugins" -type f -iname '*.dll' -print0 \ + | xargs -0 -P8 -I{} bash -c "(winedump -j export '{}' | grep -qE 'VSTPluginMain|main|main_plugin') && printf '{}\0'" \ | sed -z 's/\.dll$/.so/' \ | xargs -0 -n1 ln -sf ~/.local/share/yabridge/libyabridge.so ```