add km-hatch

This commit is contained in:
2026-01-17 21:54:27 -05:00
parent 83c22af578
commit eb411b5909

View File

@@ -18,9 +18,13 @@ REPOS = [
"url": "https://github.com/jondale/botbox3000.git", "url": "https://github.com/jondale/botbox3000.git",
"branch": "main", "branch": "main",
"directory": "botbox3000", "directory": "botbox3000",
"inx_file": "boxbot.inx", "inx": [
"id": "org.knoxmakers.botbox", {
"submenu": ["Knox Makers", "Laser"], "file": "boxbot.inx",
"id": "org.knoxmakers.botbox",
"submenu": ["Knox Makers", "Laser"],
},
],
}, },
{ {
"name": "km-living-hinge", "name": "km-living-hinge",
@@ -34,6 +38,12 @@ REPOS = [
"branch": "main", "branch": "main",
"directory": "km-plot", "directory": "km-plot",
}, },
{
"name": "km-hatch",
"url": "https://git.knoxmakers.org/KnoxMakers/km-hatch.git",
"branch": "main",
"directory": "km-hatch",
},
] ]
@@ -176,13 +186,17 @@ def patch_inx(inx_path: Path, extension_id: str | None, submenus: list[str] | No
def process_repo(repo: dict, ext_dir: Path) -> None: def process_repo(repo: dict, ext_dir: Path) -> None:
inx_file = repo.get("inx_file") inx_list = repo.get("inx", [])
extension_id = repo.get("id") directory = repo["directory"]
submenus = repo.get("submenu")
if inx_file and (extension_id or submenus): for inx_config in inx_list:
inx_path = ext_dir / repo["directory"] / inx_file inx_file = inx_config.get("file")
patch_inx(inx_path, extension_id, submenus) extension_id = inx_config.get("id")
submenus = inx_config.get("submenu")
if inx_file and (extension_id or submenus):
inx_path = ext_dir / directory / inx_file
patch_inx(inx_path, extension_id, submenus)
def main() -> None: def main() -> None: