mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 20:12:07 +08:00
installer: hang around after done (#21728)
old-commit-hash: a2bd5e002e616e2cef30459120f3a8ad57a13060
This commit is contained in:
@@ -150,10 +150,15 @@ void Installer::cloneFinished(int exitCode, QProcess::ExitStatus exitStatus) {
|
||||
#endif
|
||||
|
||||
// write continue.sh
|
||||
err = std::system("cp /data/openpilot/installer/continue_openpilot.sh " CONTINUE_PATH);
|
||||
err = std::system("cp /data/openpilot/installer/continue_openpilot.sh /data/continue.sh.new");
|
||||
assert(err == 0);
|
||||
err = std::system("chmod +x /data/continue.sh.new");
|
||||
assert(err == 0);
|
||||
std::system("mv /data/continue.sh.new " CONTINUE_PATH);
|
||||
assert(err == 0);
|
||||
|
||||
QCoreApplication::exit(0);
|
||||
// wait for the installed software's UI to take over
|
||||
QTimer::singleShot(60 * 1000, &QCoreApplication::quit);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
||||
Reference in New Issue
Block a user