Compare commits

..

2 Commits

Author SHA1 Message Date
e65941bb8c Merge branch 'main' of ssh://git.knoxmakers.org:2222/KnoxMakers/knoxmakers-inkscape 2026-01-17 21:54:48 -05:00
eb411b5909 add km-hatch 2026-01-17 21:54:27 -05:00

View File

@@ -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: