mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-19 17:03:58 +08:00
use continue_dashcam for dashcam installer
This commit is contained in:
@@ -78,7 +78,8 @@ if arch != 'aarch64' and GetOption('setup'):
|
||||
("dashcam_test", "dashcam3-staging"),
|
||||
]
|
||||
for name, branch in installers:
|
||||
d = {'BRANCH': f"'\"{branch}\"'"}
|
||||
brand = "dashcam" if "dashcam" in branch else "openpilot"
|
||||
d = {'BRANCH': f"'\"{branch}\"'", 'CONTINUE_SRC_PATH': f"'\"installer/continue_{brand}.sh\"'"}
|
||||
if "internal" in name:
|
||||
d['INTERNAL'] = "1"
|
||||
|
||||
|
||||
@@ -182,7 +182,7 @@ void Installer::cloneFinished(int exitCode, QProcess::ExitStatus exitStatus) {
|
||||
#endif
|
||||
|
||||
// write continue.sh
|
||||
run("cp /data/openpilot/installer/continue_openpilot.sh /data/continue.sh.new");
|
||||
run("cp " INSTALL_PATH "/" CONTINUE_SRC_PATH " /data/continue.sh.new");
|
||||
run("chmod +x /data/continue.sh.new");
|
||||
run("mv /data/continue.sh.new " CONTINUE_PATH);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user