From 93367536f7cb29890fb92e792a0c2f04218947b0 Mon Sep 17 00:00:00 2001 From: lilingfengdev Date: Fri, 28 Jun 2024 14:11:55 +0800 Subject: [PATCH] fix --- generate-bundle.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/generate-bundle.py b/generate-bundle.py index 6b5c03e..64b2469 100644 --- a/generate-bundle.py +++ b/generate-bundle.py @@ -22,15 +22,17 @@ if os.path.exists("dist"): shutil.rmtree("dist") + os.mkdir("dist") + for file in os.listdir(os.path.join(os.getcwd(), "src")): filepath = os.path.join(os.getcwd(), "src", file) print(f"build {file}", flush=True) - args = ["nuitka", "--onefile", filepath, "--output-dir=dist", "--quiet", "--remove-output", - "--assume-yes-for-downloads"] + args = ["nuitka", "--onefile", filepath, "--output-dir=dist", "--quiet", "--assume-yes-for-downloads"] if platform.system() == 'Windows': args.append("--windows-icon-from-ico=favicon.png") args.append("--enable-plugins=upx") + args.append("--upx-binary=upx.exe") if platform.system() == 'MacOS': args.append("--macos-app-icon=favicon.png") if platform.system() == 'Linux':