更新默认的 rclone 可执行文件名为 "rclone",并为 rclone 标志设置默认值为 ["-P"]。

This commit is contained in:
2025-03-15 14:17:16 +08:00
parent 88e30a0185
commit 0d5c6ff8fa

View File

@@ -128,7 +128,7 @@ impl Config {
pub fn rclone_exe(&self) -> String {
match self.get_str("rclone_exe") {
Some(s) => s.to_owned(),
None => String::from("game-backuper"),
None => String::from("rclone"),
}
}
@@ -141,7 +141,8 @@ impl Config {
}
pub fn rclone_flag(&self) -> Vec<String> {
self.get_str_vec("rclone_flag").unwrap_or(vec![])
self.get_str_vec("rclone_flag")
.unwrap_or(vec!["-P".to_owned()])
}
#[cfg(windows)]