fix CI failed build on linux

This commit is contained in:
chenbaiyu 2022-01-14 03:52:39 +08:00
parent 1fda4c257d
commit 4d37a9ee23

View File

@ -101,7 +101,10 @@ fn main() {
ipc::set_password(args[1].to_owned()).unwrap();
}
return;
} else if cfg!(target_os = "macos") && args[0] == "--daemon" {
}
#[cfg(target_os = "macos")]
if args[0] == "--daemon" {
log::info!("start --daemon");
crate::platform::start_daemon();
return;