feat: improve compile

This commit is contained in:
shenjack 2022-12-29 12:14:51 +08:00
parent 7e618b51a2
commit 50015f97ad

View File

@ -11,6 +11,7 @@ print(os.listdir('./build'))
with zipfile.ZipFile('./build/main.zip', 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as dist_zip:
for path, sub_paths, sub_files in os.walk('./build/DR.dist'):
print(f'writing {path}')
for file in sub_files:
file_path = os.path.join(path, file)
dist_zip.write(file_path)