diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml index 441d005..cf8f17d 100644 --- a/.gitea/workflows/build.yml +++ b/.gitea/workflows/build.yml @@ -37,18 +37,21 @@ jobs: - name: Build Windows executable (Self-Built Environment) run: | - # 1. Create a local Dockerfile + # 1. Create a local Dockerfile with ALL necessary tools cat < Dockerfile.win FROM python:3.10-slim - RUN apt-get update && apt-get install -y wine binutils-mingw-w64-x86-64 && apt-get clean + # objdump is in binutils, wine-tools/binutils-mingw are needed for cross-compiling + RUN apt-get update && \ + apt-get install -y binutils wine binutils-mingw-w64-x86-64 && \ + apt-get clean RUN python -m pip install --upgrade pip pyinstaller requests questionary rich python-dotenv WORKDIR /src EOF - # 2. Build local image + # 2. Build local image (force fresh build) docker build -t local-win-builder -f Dockerfile.win . - # 3. Use unique container name (Fixed shell variable expansion) + # 3. Use unique container name CONTAINER_NAME="win-build-${{ github.run_id }}" docker create --name $CONTAINER_NAME local-win-builder sh -c "pyinstaller --onefile --name tamigo-cli tamigo.py"