feat: create omrf packer basic layout
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user