From 1fda4c257dc2eeb3828294083a099534efedc3f2 Mon Sep 17 00:00:00 2001 From: chenbaiyu Date: Fri, 14 Jan 2022 03:47:16 +0800 Subject: [PATCH] fix CI failed build on linux --- src/server.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.rs b/src/server.rs index d0c28a9ff..70e254fb2 100644 --- a/src/server.rs +++ b/src/server.rs @@ -326,6 +326,7 @@ pub async fn start_server(is_server: bool, _tray: bool) { } } +#[cfg(target_os = "macos")] async fn sync_and_watch_config_dir() { if crate::username() == "root" { return; @@ -381,6 +382,7 @@ async fn sync_and_watch_config_dir() { } } +#[cfg(target_os = "macos")] async fn sync_config_to_user(conn: &mut ConnectionTmpl) -> ResultType<()> { allow_err!( conn.send(&Data::SyncConfigToUserReq { @@ -402,6 +404,7 @@ async fn sync_config_to_user(conn: &mut ConnectionTmpl) -> Res Ok(()) } +#[cfg(target_os = "macos")] async fn sync_config_to_root( conn: &mut ConnectionTmpl, from: PathBuf,