feat(factory): auto-sync latest bins after idf build
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user