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):