Commit Graph

77 Commits

Author SHA1 Message Date
Robbert van der Helm 4b461e44a1 [yabridgectl] Add a todo about orphans in subdirs 2021-01-04 13:49:06 +01:00
Robbert van der Helm 439c22c767 [yabridgectl] Consider subdirectories for orphans 2021-01-03 22:43:57 +01:00
Robbert van der Helm baf709d82e [yabridgectl] Include the original subdirectory 2021-01-03 22:42:50 +01:00
Robbert van der Helm 86a53a884d [yabridgectl] Find a plugin's subdirectory 2021-01-03 22:42:50 +01:00
Robbert van der Helm cd4752116a [yabridgectl] Split up Vst3Module
So we can add easily add additional fields later.
2021-01-03 21:40:36 +01:00
Robbert van der Helm c206d68b12 [yabridgectl] Allow permanently disabling checks 2021-01-02 14:32:54 +01:00
Robbert van der Helm ef540f354c [yabridgectl] Add an option to undo setting --path 2021-01-02 14:09:59 +01:00
Robbert van der Helm 34f8d3b1d2 Update the copyright notices for 2021 2021-01-01 18:54:02 +01:00
Robbert van der Helm 5773c471f9 [yabridgectl] Don't purge VST3 yabridge.toml
We only want to consider directories here.
2020-12-27 18:25:13 +01:00
Robbert van der Helm 4f8bfbcda6 [yabridgectl] Fix clippy lints 2020-12-24 13:12:19 +01:00
Robbert van der Helm 9ac437f02b [yabridgectl] Fix VST3 installation status display 2020-12-24 13:04:39 +01:00
Robbert van der Helm d79ccc75e6 [yabridgectl] Symlink VST 3.6.10 bundle resources
Although I haven't run into any of these 'new' bundles yet. Everything's
still in the legacy format.
2020-12-24 12:47:45 +01:00
Robbert van der Helm a0098034ed [yabridgectl] Rename the Vst3Module functions
Creating a clear naming scheme here is more difficult than it should be.
2020-12-24 12:38:47 +01:00
Robbert van der Helm a3e76b3370 [yabridgectl] Warn for duplicate VST3 plugins
Since we can't have multiple plugins with the same name this way.
2020-12-24 12:31:04 +01:00
Robbert van der Helm 9d33cafd37 [yabridgectl] Allow removing orphan VST3 modules 2020-12-24 12:12:48 +01:00
Robbert van der Helm 68c95e9527 [yabridgectl] Allow skipping hash checks 2020-12-24 11:54:45 +01:00
Robbert van der Helm 55957ca798 [yabridgectl] Allow setting up VST3 plugins
This is still missing checks for removing leftover files, symlinks for
resources and presets, and a way to differentiate between plugins with
the same name from different prefixes.
2020-12-24 00:04:05 +01:00
Robbert van der Helm bc9801c932 [yabridgectl] Add VST3 modules to the status 2020-12-23 21:55:14 +01:00
Robbert van der Helm 5e476a2f9b [yabridgectl] Add utilities for VST3 paths 2020-12-23 21:40:11 +01:00
Robbert van der Helm 8cb1518023 [yabridgectl] Index and categorize VST3 modules 2020-12-23 21:08:24 +01:00
Robbert van der Helm 3d27426b9d [yabridgectl] Index .vst3 files
It doesn't actually identify VST3 modules yet though.
2020-12-23 18:39:22 +01:00
Robbert van der Helm 3dc1b1585b [yabridgectl] Add field for indexing VST3 modules 2020-12-23 17:41:16 +01:00
Robbert van der Helm a7d284469a [yabridgectl] Locate libyabridge-vst3.so
And unify how finding files in yabridgectl works.
2020-12-23 17:12:28 +01:00
Robbert van der Helm 9d40e04a62 Update all references to libyabridge.so 2020-12-07 18:28:16 +01:00
Robbert van der Helm a428d08eff Update yabridgectl for libyabridge-vst2.so 2020-12-07 18:28:16 +01:00
Robbert van der Helm 21b0f70eda Rename get_modified_search_path() for clarity 2020-11-20 15:39:29 +01:00
Robbert van der Helm b9b61e420f [yabridgectl] Reorganize path check 2020-11-20 14:24:42 +01:00
Robbert van der Helm c69037b649 Always search for host in ~/.local/share/yabridge 2020-11-20 14:24:42 +01:00
Robbert van der Helm 816a2cbe01 [yabridgectl] Update Wine error detection
The usage string has changed, better to just match part of it so this
won't cause issues again in the future.
2020-10-26 17:54:41 +01:00
Robbert van der Helm c2ec1ce994 [yabridgectl] Fix removing non-existent directory
As mentioned in #46.
2020-10-23 01:49:46 +02:00
Robbert van der Helm e6af947fe1 [yabridgectl] Only recreate files when necessary
As suggested in #42. This also adds a `--force` flag to reenable the old
behaviour and always recreate files even when not necessary.
2020-10-17 18:21:53 +02:00
Robbert van der Helm 8dc95f939e [yabridgectl] Move file hashing to a function 2020-10-17 17:09:03 +02:00
Robbert van der Helm f67e1923cc Also search through /usr/local/lib in yabridgectl
For automatic path detection. It's still not recommended to install
yabridge there, but if you know what you're doing then this would at
least be a good default to have.
2020-09-27 13:33:53 +02:00
Robbert van der Helm 4c89558457 Resolve relative paths in yabridgectl 2020-09-22 23:15:51 +02:00
Robbert van der Helm f02dbb3755 Fix TOML parsing with large unsigned integers
The parser parses everything as signed integers so the configuration
file will fail to parse large numbers that don't fit in an i64.

https://github.com/alexcrichton/toml-rs/issues/256
2020-07-27 16:25:36 +02:00
Robbert van der Helm 81696f4dde Fix broken symlinks not being removed
`Path::exists()` returns false for broken symlinks:

https://doc.rust-lang.org/std/path/struct.Path.html#method.exists
2020-07-27 16:10:27 +02:00
Robbert van der Helm 9abaf60008 Fix potential out of bounds error in Wine check 2020-07-19 19:08:01 +02:00
Robbert van der Helm 6f9eb19969 Remove random comment 2020-07-19 19:03:09 +02:00
Robbert van der Helm 6bba1a9bf8 Check for Wine and yabridge compatibility on sync
This will probably solve the last common setup issue. Starting Wine can
take a second so this check is only repeated when either Wine or
yabridge get updated.
2020-07-19 16:57:18 +02:00
Robbert van der Helm a8e914a71a Add a last known config field to the configuration
For verifying that a combination of Wine and yabridge is going to work
together properly.
2020-07-19 14:39:07 +02:00
Robbert van der Helm 0778d787cc Add references to the filesystem function wrappers 2020-07-19 14:32:17 +02:00
Robbert van der Helm 3e438be302 Add an option to disable setup checks
The path check should only take a few milliseconds to run, but checking
whether yabridge-host.exe runs correctly could take over a second when
wineserver isn't already running in the background.
2020-07-19 13:54:12 +02:00
Robbert van der Helm 86be5c4814 Wrap filesystem functions for readable errors
Without having to repeat this all over the place.
2020-07-19 13:50:25 +02:00
Robbert van der Helm 9580dbea12 Wrap options for yabridgectl sync/set in a struct
To prevent having to pass a bunch of confusing boolean values or an
entire ArgMatch object.
2020-07-19 13:36:45 +02:00
Robbert van der Helm 74be0992fd Update yabridgectl documentation 2020-07-17 13:34:55 +02:00
Robbert van der Helm b94e68e935 Start argv[0] with a hyphen in login shell check
Since Rust 1.45 just came out today.
2020-07-17 13:10:01 +02:00
Robbert van der Helm 13214ca3a6 Print shell name in path setup warning 2020-07-16 23:00:10 +02:00
Robbert van der Helm 1df581cc55 Add missing blank line to path check warning 2020-07-16 22:57:49 +02:00
Robbert van der Helm 0f9599df4d Fix sentence structure in yabridgectl messages 2020-07-16 22:53:20 +02:00
Robbert van der Helm 8698a8fd0b Update messages in yabridgectl 2020-07-16 19:07:34 +02:00