mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-18 17:33:56 +02:00
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.
This commit is contained in:
@@ -6,6 +6,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|||||||
and this project adheres to [Semantic
|
and this project adheres to [Semantic
|
||||||
Versioning](https://semver.org/spec/v2.0.0.html).
|
Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### yabridgectl
|
||||||
|
|
||||||
|
- Added a `--no-verify` option to `yabridgectl sync` to skip the
|
||||||
|
post-installation setup checks. This option will skip both the login shell
|
||||||
|
search path check when using the copy-based installation method as well as the
|
||||||
|
new check for whether or not yabridge will be able to run with the currently
|
||||||
|
installed version of Wine.
|
||||||
|
|
||||||
## [1.3.0] - 2020-07-17
|
## [1.3.0] - 2020-07-17
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -144,6 +144,7 @@ pub fn set_settings(config: &mut Config, options: &SetOptions) -> Result<()> {
|
|||||||
|
|
||||||
/// Options passed to `yabridgectl sync`, see `main()` for the definitions of these options.
|
/// Options passed to `yabridgectl sync`, see `main()` for the definitions of these options.
|
||||||
pub struct SyncOptions {
|
pub struct SyncOptions {
|
||||||
|
pub no_verify: bool,
|
||||||
pub prune: bool,
|
pub prune: bool,
|
||||||
pub verbose: bool,
|
pub verbose: bool,
|
||||||
}
|
}
|
||||||
@@ -237,6 +238,10 @@ pub fn do_sync(config: &Config, options: &SyncOptions) -> Result<()> {
|
|||||||
num_skipped_files
|
num_skipped_files
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if options.no_verify {
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
|
||||||
if config.method == InstallationMethod::Copy {
|
if config.method == InstallationMethod::Copy {
|
||||||
if let Err(shell_name) = verify_path_setup() {
|
if let Err(shell_name) = verify_path_setup() {
|
||||||
println!(
|
println!(
|
||||||
|
|||||||
@@ -100,6 +100,12 @@ fn main() -> Result<()> {
|
|||||||
.subcommand(
|
.subcommand(
|
||||||
App::new("sync")
|
App::new("sync")
|
||||||
.about("Set up or update yabridge for all plugins")
|
.about("Set up or update yabridge for all plugins")
|
||||||
|
.arg(
|
||||||
|
Arg::with_name("no-verify")
|
||||||
|
.short('n')
|
||||||
|
.long("no-verify")
|
||||||
|
.about("Skip post-installation setup checks"),
|
||||||
|
)
|
||||||
.arg(
|
.arg(
|
||||||
Arg::with_name("prune")
|
Arg::with_name("prune")
|
||||||
.short('p')
|
.short('p')
|
||||||
@@ -136,6 +142,7 @@ fn main() -> Result<()> {
|
|||||||
("sync", Some(options)) => actions::do_sync(
|
("sync", Some(options)) => actions::do_sync(
|
||||||
&config,
|
&config,
|
||||||
&actions::SyncOptions {
|
&actions::SyncOptions {
|
||||||
|
no_verify: options.is_present("no-verify"),
|
||||||
prune: options.is_present("prune"),
|
prune: options.is_present("prune"),
|
||||||
verbose: options.is_present("verbose"),
|
verbose: options.is_present("verbose"),
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user