mirror of https://github.com/commaai/openpilot.git
parent
a256898510
commit
4c04ae9a59
|
@ -106,10 +106,6 @@ if GetOption('extras') and arch != "Darwin":
|
|||
if "internal" in name:
|
||||
d['INTERNAL'] = "1"
|
||||
|
||||
import requests
|
||||
r = requests.get("https://github.com/commaci2.keys")
|
||||
r.raise_for_status()
|
||||
d['SSH_KEYS'] = f'\\"{r.text.strip()}\\"'
|
||||
obj = senv.Object(f"installer/installers/installer_{name}.o", ["installer/installer.cc"], CPPDEFINES=d)
|
||||
f = senv.Program(f"installer/installers/installer_{name}", [obj, cont], LIBS=qt_libs)
|
||||
# keep installers small
|
||||
|
|
|
@ -180,10 +180,12 @@ void Installer::cloneFinished(int exitCode, QProcess::ExitStatus exitStatus) {
|
|||
#ifdef INTERNAL
|
||||
run("mkdir -p /data/params/d/");
|
||||
|
||||
// https://github.com/commaci2.keys
|
||||
const std::string ssh_keys = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIMX2kU8eBZyEWmbq0tjMPxksWWVuIV/5l64GabcYbdpI";
|
||||
std::map<std::string, std::string> params = {
|
||||
{"SshEnabled", "1"},
|
||||
{"RecordFrontLock", "1"},
|
||||
{"GithubSshKeys", SSH_KEYS},
|
||||
{"GithubSshKeys", ssh_keys},
|
||||
};
|
||||
for (const auto& [key, value] : params) {
|
||||
std::ofstream param;
|
||||
|
|
Loading…
Reference in New Issue