fix CI failed build on linux

This commit is contained in:
chenbaiyu 2022-01-14 03:47:16 +08:00
parent fea4b068cd
commit 1fda4c257d

View File

@ -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<ConnectionClient>) -> ResultType<()> {
allow_err!(
conn.send(&Data::SyncConfigToUserReq {
@ -402,6 +404,7 @@ async fn sync_config_to_user(conn: &mut ConnectionTmpl<ConnectionClient>) -> Res
Ok(())
}
#[cfg(target_os = "macos")]
async fn sync_config_to_root(
conn: &mut ConnectionTmpl<ConnectionClient>,
from: PathBuf,