diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 320fa344..e7d22e68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -79,10 +79,8 @@ jobs: - name: Build macOS installer run: | cd installer + uv venv uv pip install -e "..[dev]" - # Use system Python paths to match local environment - PYTHONHOME=/Library/Frameworks/Python.framework/Versions/3.12 \ - PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12 \ uv run python setup.py bdist_mac xattr -dr com.apple.quarantine "build/Basic Memory Installer.app" diff --git a/installer/setup.py b/installer/setup.py index 2bc6fc42..99c83cf5 100644 --- a/installer/setup.py +++ b/installer/setup.py @@ -1,21 +1,18 @@ from cx_Freeze import setup, Executable import sys -# Build options for all platforms +# Build options for all platforms - keep it simple and don't exclude too much build_exe_options = { "packages": ["json", "pathlib"], "excludes": [ - "tkinter", "unittest", - "email", - "html", - "http", - "xml", "pydoc", - "_tkinter", "test" ], - "include_msvcr": False, + # Control file copying behavior + "copy_dependent_files": False, + "create_library_zip": True, + "copy_to_same_dir": False, } # Platform-specific options