feat: create omrf packer basic layout

This commit is contained in:
2026-08-01 22:31:39 +08:00
parent 003db65f9c
commit 8e92ceeabd
11 changed files with 101 additions and 7 deletions
@@ -0,0 +1,10 @@
import zipfile
from pathlib import Path
def pack(dist_dir: str, output_zip: str) -> None:
dist = Path(dist_dir)
with zipfile.ZipFile(output_zip, "w", zipfile.ZIP_DEFLATED) as zf:
for path in dist.rglob("*"):
if path.is_file():
zf.write(path, path.relative_to(dist))