Skip to content

Conversation

@Nene020911
Copy link

  • 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

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants