fix CI failed build on linux
This commit is contained in:
parent
b4f61c735e
commit
78450fda08
@ -13,6 +13,7 @@ use hbb_common::{
|
|||||||
sodiumoxide::crypto::{box_, secretbox, sign},
|
sodiumoxide::crypto::{box_, secretbox, sign},
|
||||||
timeout, tokio, ResultType, Stream,
|
timeout, tokio, ResultType, Stream,
|
||||||
};
|
};
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
use notify::{watcher, RecursiveMode, Watcher};
|
use notify::{watcher, RecursiveMode, Watcher};
|
||||||
use parity_tokio_ipc::ConnectionClient;
|
use parity_tokio_ipc::ConnectionClient;
|
||||||
use service::{GenericService, Service, ServiceTmpl, Subscriber};
|
use service::{GenericService, Service, ServiceTmpl, Subscriber};
|
||||||
|
@ -364,7 +364,8 @@ impl UI {
|
|||||||
}
|
}
|
||||||
ipc::set_options(options.clone()).ok();
|
ipc::set_options(options.clone()).ok();
|
||||||
|
|
||||||
if cfg!(target_os = "macos") && &key == "stop-service" {
|
#[cfg(target_os = "macos")]
|
||||||
|
if &key == "stop-service" {
|
||||||
crate::platform::macos::launch_or_stop_daemon(value != "Y");
|
crate::platform::macos::launch_or_stop_daemon(value != "Y");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user