diff --git a/tools/release/package.py b/tools/release/package.py index bd4832a..74c2825 100755 --- a/tools/release/package.py +++ b/tools/release/package.py @@ -155,7 +155,9 @@ def build_stage(stage: Path, version: str, source_sha: str, commit_time: datetim source = ROOT / name if not source.is_file(): fail(f"missing required file {name}") - shutil.copyfile(source, stage / name) + destination = stage / name + destination.parent.mkdir(parents=True, exist_ok=True) + shutil.copyfile(source, destination) shutil.copyfile(ROOT / "packaging/tool.json", stage / "tool.json") for tree in COPY_TREES: