feat(factory): auto-sync latest bins after idf build

This commit is contained in:
admin
2026-03-02 13:44:56 +08:00
parent 5cd0c51be0
commit 673b257c4f
5 changed files with 169 additions and 8 deletions

View File

@@ -63,6 +63,8 @@ def sync_bins_from_idf_build(
bin_dir: Path,
required_bins: Iterable[str],
build_dir: Path,
*,
overwrite: bool = False,
) -> list[tuple[Path, Path]]:
if not build_dir.exists() or not build_dir.is_dir():
return []
@@ -77,7 +79,7 @@ def sync_bins_from_idf_build(
seen.add(name)
target = bin_dir / name
if target.exists():
if target.exists() and not overwrite:
continue
source = build_map.get(name)