🐛 移除可能存在的引号

This commit is contained in:
柚子
2025-03-07 01:27:53 +08:00
parent 2196fe1e9b
commit b6928c3bb1

View File

@@ -512,9 +512,12 @@ impl DownloadManager {
async fn install_package(&self, task: &InstallTask) -> Result<(), String> {
println!("开始安装包: {}", task.filepath);
// 移除可能存在的引号
let filepath = task.filepath.trim_matches('"');
let output = Command::new("pkexec")
.arg("ssinstall")
.arg(&task.filepath)
.arg(filepath)
.arg("--delete-after-install")
.output()
.map_err(|e| {