From 9d9677972b2344cc227a68a3d83cd377c5510c71 Mon Sep 17 00:00:00 2001 From: haosicheng Date: Mon, 13 Oct 2025 15:18:39 +0800 Subject: [PATCH] =?UTF-8?q?[patch]=20=E4=BF=AE=E6=94=B9=E6=89=93=E5=8C=85?= =?UTF-8?q?=E5=9B=BA=E5=AE=9A=E9=A1=B9=E7=BC=93=E5=AD=98=E5=A4=8D=E7=94=A8?= =?UTF-8?q?=20=E6=8F=90=E5=8D=87=E6=89=93=E5=8C=85=E6=95=88=E7=8E=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- quick_build.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/quick_build.py b/quick_build.py index 40c15ec..ca0a839 100644 --- a/quick_build.py +++ b/quick_build.py @@ -37,6 +37,15 @@ def clean_build(): dirs_to_clean = ['dist'] print("Incremental build mode - preserving build cache for faster builds") + # Always remove spec file to ensure PyInstaller regenerates it from command-line args + spec_file = 'MultiPlatformGUI.spec' + if os.path.exists(spec_file): + try: + os.remove(spec_file) + print(f"Removed old spec file: {spec_file}") + except Exception as e: + print(f"WARNING: Failed to remove spec file: {e}") + for dir_name in dirs_to_clean: print(f"Checking directory: {dir_name}") if os.path.exists(dir_name):