mirror of
https://github.com/SK8-ENGINE/skate-3-rust-engine.git
synced 2026-10-26 19:47:44 +00:00
Bundle Native Trainer and complete Mario Kart mod packages
This commit is contained in:
1 parent
24ac089874
commit
5b04f35904
16 files changed
+44
-17
No files matched your search
@@ -32,7 +32,12 @@ def main():
|
||||
if path.is_symlink():
|
||||
raise ValueError(f'Symlinks are not allowed: {path}')
|
||||
if path.is_file():
|
||||
archive.write(path, path.relative_to(source).as_posix())
|
||||
# Stable metadata keeps committed packages unchanged on a clean rebuild.
|
||||
entry = zipfile.ZipInfo(path.relative_to(source).as_posix(), (1980, 1, 1, 0, 0, 0))
|
||||
entry.create_system = 3
|
||||
entry.external_attr = 0o100644 << 16
|
||||
entry.compress_type = zipfile.ZIP_DEFLATED
|
||||
archive.writestr(entry, path.read_bytes(), compresslevel=6)
|
||||
subprocess.run(command + ['--', temporary], cwd=ROOT, check=True)
|
||||
os.replace(temporary, output)
|
||||
print(f'Ready: {output} ({output.stat().st_size:,} bytes)')
|
||||
|
||||
Reference in new issue
Block a user