From 4fe6f3e975efa25aca80d23386c0c0140357ba5d Mon Sep 17 00:00:00 2001 From: suchmememanyskill <38142618+suchmememanyskill@users.noreply.github.com> Date: Fri, 9 Feb 2024 21:22:56 +0100 Subject: [PATCH] State device name in webinstall tool --- ci.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ci.py b/ci.py index d339c0c..0300260 100644 --- a/ci.py +++ b/ci.py @@ -3,9 +3,9 @@ CYD_PORTS = ["esp32-3248S035C", "esp32-2432S028R"] BASE_DIR = os.getcwd() -def get_manifest(base_path : str): +def get_manifest(base_path : str, device_name : str): return { - "name": "CYD-Klipper", + "name": f"CYD-Klipper for {device_name}", "new_install_prompt_erase": True, "builds": [ { @@ -52,7 +52,7 @@ def get_manifest(base_path : str): os.chdir(BASE_DIR) with open(f"./_site/{port}.json", "w") as f: - json.dump(get_manifest(port_path), f) + json.dump(get_manifest(port_path, port), f) os.chdir(BASE_DIR) shutil.copytree("./out", "./_site/out")