Add Friends CMP Bedrock resource pack conversion
Build and release Bedrock pack / release (push) Failing after 6s
Build and release Bedrock pack / release (push) Failing after 6s
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build tracked Bedrock resource-pack files into a .mcpack archive."""
|
||||
from pathlib import Path
|
||||
from zipfile import ZIP_DEFLATED, ZipFile
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
OUT = ROOT / "build" / "Friends-CMP-Bedrock.mcpack"
|
||||
EXCLUDED = {".git", "build", ".github", "scripts", "geyser", "README.md", ".gitignore"}
|
||||
OUT.parent.mkdir(exist_ok=True)
|
||||
with ZipFile(OUT, "w", ZIP_DEFLATED) as archive:
|
||||
for path in sorted(ROOT.rglob("*")):
|
||||
if path.is_file() and path.relative_to(ROOT).parts[0] not in EXCLUDED:
|
||||
archive.write(path, path.relative_to(ROOT).as_posix())
|
||||
print(OUT)
|
||||
Reference in New Issue
Block a user