installer improvements (#21588)

* installer ui

* progress

* works

* cleanup

* header

* exit

* small

* revert that
This commit is contained in:
Adeeb Shihadeh
2021-07-14 16:46:36 -07:00
committed by GitHub
parent deb67ff870
commit 3f8c63a4d9
5 changed files with 157 additions and 43 deletions
+7 -2
View File
@@ -54,6 +54,8 @@ if arch != 'aarch64' and GetOption('setup'):
qt_env.Program("qt/setup/setup", ["qt/setup/setup.cc"], LIBS=qt_libs + ['curl', 'common', 'json11'])
qt_env.Program("qt/setup/wifi", ["qt/setup/wifi.cc"], LIBS=qt_libs + ['common', 'json11'])
senv = qt_env.Clone()
senv['LINKFLAGS'].append('-Wl,-strip-debug')
installers = [
("openpilot", "release3-staging"),
("openpilot_test", "release3-staging"),
@@ -70,8 +72,11 @@ if arch != 'aarch64' and GetOption('setup'):
r = requests.get("https://github.com/commaci2.keys")
r.raise_for_status()
d['SSH_KEYS'] = f'\\"{r.text.strip()}\\"'
obj = qt_env.Object(f"qt/setup/installer_{name}.o", ["qt/setup/installer.cc"], CPPDEFINES=d)
qt_env.Program(f"qt/setup/installer_{name}", obj, LIBS=qt_libs, CPPDEFINES=d)
obj = senv.Object(f"qt/setup/installer_{name}.o", ["qt/setup/installer.cc"], CPPDEFINES=d)
f = senv.Program(f"qt/setup/installer_{name}", obj, LIBS=qt_libs)
# keep installers small
assert f[0].get_size() < 300*1e3
# build headless replay
if arch == 'x86_64' and os.path.exists(Dir("#tools/").get_abspath()):