use continue_dashcam for dashcam installer

pull/21846/head
Adeeb Shihadeh 4 years ago
parent 3a53a7b84b
commit 3129e058f8
  1. 3
      selfdrive/ui/SConscript
  2. 2
      selfdrive/ui/qt/setup/installer.cc

@ -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);

Loading…
Cancel
Save