fix CI failed build on linux
This commit is contained in:
parent
fea4b068cd
commit
1fda4c257d
@ -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() {
|
async fn sync_and_watch_config_dir() {
|
||||||
if crate::username() == "root" {
|
if crate::username() == "root" {
|
||||||
return;
|
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<()> {
|
async fn sync_config_to_user(conn: &mut ConnectionTmpl<ConnectionClient>) -> ResultType<()> {
|
||||||
allow_err!(
|
allow_err!(
|
||||||
conn.send(&Data::SyncConfigToUserReq {
|
conn.send(&Data::SyncConfigToUserReq {
|
||||||
@ -402,6 +404,7 @@ async fn sync_config_to_user(conn: &mut ConnectionTmpl<ConnectionClient>) -> Res
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
async fn sync_config_to_root(
|
async fn sync_config_to_root(
|
||||||
conn: &mut ConnectionTmpl<ConnectionClient>,
|
conn: &mut ConnectionTmpl<ConnectionClient>,
|
||||||
from: PathBuf,
|
from: PathBuf,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user