diff --git a/.github/workflows/after_compile.py b/.github/workflows/after_compile.py index d75ad6a..1703d9e 100644 --- a/.github/workflows/after_compile.py +++ b/.github/workflows/after_compile.py @@ -11,12 +11,20 @@ import zipfile if sys.platform == "win32": os.system('') -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/Difficult-Rocket'): - print(f'writing {path}') - for file in sub_files: - file_path = os.path.join(path, file) - dist_zip.write(file_path) +def make_zip(): + 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/Difficult-Rocket'): + print(f'writing {path}') + for file in sub_files: + file_path = os.path.join(path, file) + dist_zip.write(file_path) + +def remove_dev_usage(): + ... + + +if __name__ == '__main__': + print(os.listdir('./build')) + make_zip()