Workflow: Switch to burningtyger Docker image to fix Windows path errors
This commit is contained in:
@@ -40,27 +40,17 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Build Windows executable via Docker (Unique Names)
|
||||
- name: Build Windows executable via Docker (Modern & Robust)
|
||||
run: |
|
||||
# Ensure unique container name for this run
|
||||
CONTAINER_NAME="builder-${{ github.run_id }}"
|
||||
|
||||
# Clean up any existing container with this name just in case
|
||||
docker rm -f $CONTAINER_NAME || true
|
||||
|
||||
# Create container
|
||||
docker create --name $CONTAINER_NAME cdrx/pyinstaller-windows
|
||||
# Using a more modern Python 3.10 image that handles paths better
|
||||
docker create --name $CONTAINER_NAME burningtyger/pyinstaller-windows "pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py"
|
||||
|
||||
# Copy source code
|
||||
docker cp . $CONTAINER_NAME:/src
|
||||
|
||||
# Run build
|
||||
docker start -a $CONTAINER_NAME
|
||||
|
||||
# Copy results
|
||||
docker cp $CONTAINER_NAME:/src/dist .
|
||||
|
||||
# Clean up
|
||||
docker rm $CONTAINER_NAME
|
||||
|
||||
- name: Debug - List output files
|
||||
|
||||
Reference in New Issue
Block a user