fix CI failed build on linux

This commit is contained in:
chenbaiyu 2022-01-14 03:38:22 +08:00
parent b4f61c735e
commit 78450fda08
2 changed files with 3 additions and 1 deletions

View File

@ -13,6 +13,7 @@ use hbb_common::{
sodiumoxide::crypto::{box_, secretbox, sign},
timeout, tokio, ResultType, Stream,
};
#[cfg(target_os = "macos")]
use notify::{watcher, RecursiveMode, Watcher};
use parity_tokio_ipc::ConnectionClient;
use service::{GenericService, Service, ServiceTmpl, Subscriber};

View File

@ -364,7 +364,8 @@ impl UI {
}
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");
}
}