mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Mention the bash snippets in yabridgectl readme
This commit is contained in:
@@ -27,6 +27,9 @@ Please let me know if there are any issues with other VST hosts.
|
|||||||
|
|
||||||
## Usage
|
## 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
|
You can either download a prebuilt version of yabridge through the GitHub
|
||||||
[releases](https://github.com/robbert-vdh/yabridge/releases) section, or you can
|
[releases](https://github.com/robbert-vdh/yabridge/releases) section, or you can
|
||||||
compile it from source using the instructions in the [build](#Building) section
|
compile it from source using the instructions in the [build](#Building) section
|
||||||
|
|||||||
@@ -66,6 +66,33 @@ yabridgectl sync
|
|||||||
yabridgectl sync --prune
|
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
|
## Building
|
||||||
|
|
||||||
After installing [Rust](https://rustup.rs/), simply run the below to compile and
|
After installing [Rust](https://rustup.rs/), simply run the below to compile and
|
||||||
|
|||||||
Reference in New Issue
Block a user