doc: update packer README

This commit is contained in:
2026-08-03 15:15:18 +08:00
parent 8c0775d784
commit 52bd89ad6e
2 changed files with 20 additions and 2 deletions
@@ -42,6 +42,14 @@ class Archiver:
else:
self.__dist_zip = None
def push_dir(self, arcname: Path) -> None:
if self.__dist_dir is not None:
target_filepath = self.__dist_dir / arcname
target_filepath.parent.mkdir(parents=True, exist_ok=True)
if self.__dist_zip is not None:
self.__dist_zip.mkdir(str(arcname))
def push_file(self, filepath: Path, arcname: Path) -> None:
"""Mirror an existing file into both sinks.