turns out windows' built in zip hates LZMA

also fix APMC output path
This commit is contained in:
Fabian Dill
2021-07-22 01:08:44 +02:00
parent 8a1ac566c8
commit b2f5f095fc
2 changed files with 3 additions and 4 deletions

View File

@@ -566,7 +566,7 @@ def main(args, seed=None):
if args.create_spoiler: # needs spoiler.hashes to be filled, that depend on rom_futures being done
world.spoiler.to_file(os.path.join(temp_dir, '%s_Spoiler.txt' % outfilebase))
logger.info('Creating final archive.')
with zipfile.ZipFile(output_path(f"AP_{world.seed_name}.zip"), mode="w", compression=zipfile.ZIP_LZMA,
with zipfile.ZipFile(output_path(f"AP_{world.seed_name}.zip"), mode="w", compression=zipfile.ZIP_DEFLATED,
compresslevel=9) as zf:
for file in os.scandir(temp_dir):
zf.write(os.path.join(temp_dir, file), arcname=file.name)