From ffcca538bf0601e99750aadcefb99392f2bd4df2 Mon Sep 17 00:00:00 2001 From: Daniel Dybing Date: Wed, 11 Mar 2026 14:50:49 +0100 Subject: [PATCH] Workflow: Switch to burningtyger Docker image to fix Windows path errors --- .gitea/workflows/build.yml | 16 +++------------- .gitea/workflows/release.yml | 8 ++++++-- 2 files changed, 9 insertions(+), 15 deletions(-) diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 2f3bff6..3efc806 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -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 diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 3bd9928..cc4c592 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -34,15 +34,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Build Windows executable via Docker (Unique Names) + - name: Build Windows executable via Docker (Modern & Robust) run: | CONTAINER_NAME="rel-builder-${{ github.run_id }}" docker rm -f $CONTAINER_NAME || true - docker create --name $CONTAINER_NAME cdrx/pyinstaller-windows + + # Using burningtyger/pyinstaller-windows for better path handling + docker create --name $CONTAINER_NAME burningtyger/pyinstaller-windows "pip install -r requirements.txt && pyinstaller --onefile --name tamigo-cli tamigo.py" + docker cp . $CONTAINER_NAME:/src docker start -a $CONTAINER_NAME docker cp $CONTAINER_NAME:/src/dist . docker rm $CONTAINER_NAME + - name: Debug - List output files run: ls -R dist/ - name: Rename for release