From 4d37a9ee2346562e60cbe18dc40116228ea0401d Mon Sep 17 00:00:00 2001 From: chenbaiyu Date: Fri, 14 Jan 2022 03:52:39 +0800 Subject: [PATCH] fix CI failed build on linux --- src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 39b52cb58..215aa67ca 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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;