mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-12-14 04:42:03 +08:00
update:开发模式下直接调用更新器
This commit is contained in:
@@ -537,8 +537,7 @@ void MainWindow::on_pushButton_14_clicked()
|
||||
return;
|
||||
}
|
||||
QProcess *process = new QProcess(this);
|
||||
QString program = "pkexec";
|
||||
QStringList arguments;
|
||||
arguments << appPath <<"--silent";
|
||||
process->start(program, arguments);
|
||||
process->start(appPath, {"--silent"});
|
||||
}
|
||||
Reference in New Issue
Block a user