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,10 +18,14 @@ 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": [
{
"file": "boxbot.inx",
"id": "org.knoxmakers.botbox", "id": "org.knoxmakers.botbox",
"submenu": ["Knox Makers", "Laser"], "submenu": ["Knox Makers", "Laser"],
}, },
],
},
{ {
"name": "km-living-hinge", "name": "km-living-hinge",
"url": "https://github.com/KnoxMakers/km-living-hinge.git", "url": "https://github.com/KnoxMakers/km-living-hinge.git",
@@ -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,12 +186,16 @@ 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")
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): if inx_file and (extension_id or submenus):
inx_path = ext_dir / repo["directory"] / inx_file inx_path = ext_dir / directory / inx_file
patch_inx(inx_path, extension_id, submenus) patch_inx(inx_path, extension_id, submenus)