Add Windows executable build system using PyInstaller#20
Open
Nene020911 wants to merge 6 commits intoiVideoGameBoss:mainfrom
Open
Add Windows executable build system using PyInstaller#20Nene020911 wants to merge 6 commits intoiVideoGameBoss:mainfrom
Nene020911 wants to merge 6 commits intoiVideoGameBoss:mainfrom
Conversation
- iRoopDeepFaceCam.spec: PyInstaller spec file with all hidden imports, data files (CustomTkinter theme, ui.json, ONNX runtime), and submodule collection for insightface/gfpgan/onnxruntime - build_exe.py: Python build script with clean, onefile, and noconsole options, plus distribution preparation (models dir, launcher scripts) - build_exe.bat: One-click Windows batch build script that installs dependencies, runs PyInstaller, and prepares the output folder - BUILDING.md: Complete build instructions and troubleshooting guide - modules/globals.py: Handle PyInstaller frozen exe paths (ROOT_DIR points to exe directory, BUNDLE_DIR to extraction folder) - modules/utilities.py: resolve_relative_path() now checks PyInstaller bundle first for data files, falls back to exe directory for models https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW
- setup_macos.sh: Full macOS installer - checks Homebrew, installs FFmpeg, Python, tkinter, creates venv, installs all dependencies with Apple Silicon (onnxruntime-silicon) and Intel support, pins numpy < 2 to avoid onnxruntime ABI incompatibility, verifies install - run_macos.sh: macOS launcher script - activates venv, checks model files and FFmpeg, detects Apple Silicon for CoreML hint, runs app - requirements.txt: Changed numpy pin from ==1.23.5 to >=1.23.5,<2 to prevent pip dependency resolver from upgrading to numpy 2.x which breaks onnxruntime 1.18.0 (compiled against numpy 1.x ABI) https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW
Shell scripts had Windows-style CRLF line endings causing "invalid option" and "syntax error: unexpected end of file" on macOS. Converted to Unix LF endings and added .gitattributes to enforce LF checkout for all .sh files on any platform. https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW
setup_macos.sh now installs LLVM and cmake via Homebrew before Python packages, and exports LLVM_CONFIG and CMAKE_PREFIX_PATH so llvmlite (gfpgan -> basicsr -> numba -> llvmlite) can find the LLVM libraries during wheel compilation. https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW
Homebrew installs LLVM 21 but llvmlite only supports up to LLVM 20, causing build failure. Fixed by: - Removing LLVM/cmake brew dependencies (no longer needed) - Pinning llvmlite==0.43.0 and numba==0.60.0 with --only-binary flag to force pre-built wheel installation instead of source build https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW
DOCUMENTATION.md covers project structure, macOS installation, Windows EXE build instructions, technical changes, model files, hotkeys, execution providers, and git commit history. https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://claude.ai/code/session_01D1fztARG1KMhLZ2dpx5KcW