Skip to content

Commit

Permalink
Update after_compile.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Jan 22, 2023
1 parent 9f56d56 commit b87403b
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/after_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,20 @@
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()

0 comments on commit b87403b

Please sign in to comment.