744 B
744 B
Windows Cross-Compilation Fix (Gitea Actions)
- Problem: The Windows build was failing due to
OSError: [WinError 123] Invalid name: '/tmp\\*'and volume mount issues in the Gitea CI environment. - Solution:
- Used the
cdrx/pyinstaller-windowsDocker image but bypassed its default entrypoint. - Implemented a "Manual Copy" strategy using
docker cpto move files in and out of the container, avoiding unreliable volume mounts. - Forced PyInstaller to use Windows-compatible paths by explicitly setting
TMPandTEMPenvironment variables toC:\\tempand specifying--workpathand--distpathduring the build command. - Downgraded
upload-artifacttov3for compatibility with Gitea's artifact storage.
- Used the