Skip to content

Commit

Permalink
State device name in webinstall tool
Browse files Browse the repository at this point in the history
  • Loading branch information
suchmememanyskill committed Feb 9, 2024
1 parent b8cb7f7 commit 4fe6f3e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
{
Expand Down Expand Up @@ -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")

0 comments on commit 4fe6f3e

Please sign in to comment.