Workflow: Synchronize release workflow with robust Windows build logic
This commit is contained in:
8
GEMINI.md
Normal file
8
GEMINI.md
Normal file
@@ -0,0 +1,8 @@
|
||||
|
||||
## 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**:
|
||||
1. Used the `cdrx/pyinstaller-windows` Docker image but bypassed its default entrypoint.
|
||||
2. Implemented a "Manual Copy" strategy using `docker cp` to move files in and out of the container, avoiding unreliable volume mounts.
|
||||
3. Forced PyInstaller to use Windows-compatible paths by explicitly setting `TMP` and `TEMP` environment variables to `C:\\temp` and specifying `--workpath` and `--distpath` during the build command.
|
||||
4. Downgraded `upload-artifact` to `v3` for compatibility with Gitea's artifact storage.
|
||||
Reference in New Issue
Block a user