diff --git a/scripts/bundle.py b/scripts/bundle.py index 8c12e79..bcf6a2a 100755 --- a/scripts/bundle.py +++ b/scripts/bundle.py @@ -18,9 +18,13 @@ REPOS = [ "url": "https://github.com/jondale/botbox3000.git", "branch": "main", "directory": "botbox3000", - "inx_file": "boxbot.inx", - "id": "org.knoxmakers.botbox", - "submenu": ["Knox Makers", "Laser"], + "inx": [ + { + "file": "boxbot.inx", + "id": "org.knoxmakers.botbox", + "submenu": ["Knox Makers", "Laser"], + }, + ], }, { "name": "km-living-hinge", @@ -34,6 +38,12 @@ REPOS = [ "branch": "main", "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: - inx_file = repo.get("inx_file") - extension_id = repo.get("id") - submenus = repo.get("submenu") + inx_list = repo.get("inx", []) + directory = repo["directory"] - if inx_file and (extension_id or submenus): - inx_path = ext_dir / repo["directory"] / inx_file - patch_inx(inx_path, extension_id, submenus) + for inx_config in inx_list: + inx_file = inx_config.get("file") + 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: