app
KiCad - the KiCad Bridge
Public Made by Adomby adom
Drive your own KiCad from an AI, in the background: open every editor, read the whole board as data (the EDA Bridge Standard board model), stack-up, part heights, netlists, place, route, pour, DRC and exports.
← Commit history
sign_azure: ask the signing host for its LOCALAPPDATA instead of a hard-coded user folder
1 file changed
+6−1
tools/sign_azure.py+6−1@@ -170,7 +170,12 @@ def sign(exe, ver): here = local_windows_host() if here and here.lower() == host.lower(): return sign_locally(exe, ver, cfg, ps1)- stage = cfg["stageDir"].replace("%LOCALAPPDATA%", cfg.get("localAppData", r"C:\Users\cknox\AppData\Local")) \+ lad = cfg.get("localAppData") or (ab_json("--target", host, "--ai-thread", THREAD, "run_script", json.dumps({+ "interpreter": "powershell", "scriptB64": base64.b64encode(b"$env:LOCALAPPDATA").decode(), "timeout": 30,+ "reason": "read the signing host's LOCALAPPDATA for the staging folder"})).get("stdout") or "").strip()+ if not lad:+ raise SystemExit("REFUSED: could not read the signing host's LOCALAPPDATA for the staging folder")+ stage = cfg["stageDir"].replace("%LOCALAPPDATA%", lad) \ + "\\kicad-build-" + ver.replace(".", "_") # a dotted folder name reads as a file path to send_files unsigned_sha = hashlib.sha256(exe.read_bytes()).hexdigest() work = Path(tempfile.mkdtemp(prefix="kicad-sign-"))