Update after_compile.py
This commit is contained in:
parent
9f56d566dc
commit
b87403b0f6
10
.github/workflows/after_compile.py
vendored
10
.github/workflows/after_compile.py
vendored
@ -11,8 +11,8 @@ import zipfile
|
|||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
os.system('')
|
os.system('')
|
||||||
|
|
||||||
print(os.listdir('./build'))
|
|
||||||
|
|
||||||
|
def make_zip():
|
||||||
with zipfile.ZipFile('./build/main.zip', 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as dist_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'):
|
for path, sub_paths, sub_files in os.walk('./build/Difficult-Rocket'):
|
||||||
print(f'writing {path}')
|
print(f'writing {path}')
|
||||||
@ -20,3 +20,11 @@ with zipfile.ZipFile('./build/main.zip', 'w', zipfile.ZIP_DEFLATED, compressleve
|
|||||||
file_path = os.path.join(path, file)
|
file_path = os.path.join(path, file)
|
||||||
dist_zip.write(file_path)
|
dist_zip.write(file_path)
|
||||||
|
|
||||||
|
|
||||||
|
def remove_dev_usage():
|
||||||
|
...
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
print(os.listdir('./build'))
|
||||||
|
make_zip()
|
||||||
|
Loading…
Reference in New Issue
Block a user