From e75d4171affaa7a796926e7026bda2b0e2627a26 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 10 Jun 2023 16:10:53 +0800 Subject: [PATCH] you wait and see --- nuitka_build.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nuitka_build.py b/nuitka_build.py index 9368e70..ea75542 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -57,6 +57,7 @@ if __name__ == '__main__': if do_compile == 'y': # 编译 + time.sleep(1) # 等待 1s start_time = time.time_ns() subprocess.run(compiler.gen_subprocess_cmd()) print('Compile Done!') @@ -69,6 +70,7 @@ if __name__ == '__main__': shutil.rmtree(compiler.output_path / 'DR.dist' / 'fonts' / 'HarmonyOS_Sans' / 'HarmonyOS_Sans', ignore_errors=True) os.remove(compiler.output_path / 'DR.dist' / 'fonts' / 'Monocraft.otf') os.remove(compiler.output_path / 'DR.dist' / 'fonts' / 'SmileySans-Oblique.ttf') + print('Remove Useless Files Done!') # 压缩 with zipfile.ZipFile(Path('./build/Difficult_Rocket.zip'), 'w', zipfile.ZIP_DEFLATED, compresslevel=9) as dist_zip: for path, sub_paths, sub_files in os.walk(compiler.output_path / 'DR.dist'): @@ -76,3 +78,4 @@ if __name__ == '__main__': for file in sub_files: file_path = os.path.join(path, file) dist_zip.write(file_path) + print('Zip Done!')