Fix update unpacking

This commit is contained in:
woblight
2018-07-22 18:59:07 +02:00
parent 563fb98f64
commit dbb95f47a1
4 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -83,9 +83,9 @@ int main(int argc, char *argv[])
if (res == 2) {
QStringList args = app.arguments().mid(1);
args << "--update" << QString("\"%1\"").arg(app.applicationDirPath());
QProcess().startDetached(app.applicationDirPath()+"/update/GitAddonsManager", args);
QProcess().startDetached(app.applicationDirPath()+"/update/" + GAM_EXEC, args);
}
if (res == 3)
QProcess().startDetached(update + "/GitAddonsManager", QApplication::arguments().mid(1) << "--update" << "");
QProcess().startDetached(update + "/" + GAM_EXEC, QApplication::arguments().mid(1) << "--update" << "");
return res;
}