Workflow: Add binutils to local Windows builder to provide objdump
This commit is contained in:
@@ -37,18 +37,21 @@ jobs:
|
|||||||
|
|
||||||
- name: Build Windows executable (Self-Built Environment)
|
- name: Build Windows executable (Self-Built Environment)
|
||||||
run: |
|
run: |
|
||||||
# 1. Create a local Dockerfile
|
# 1. Create a local Dockerfile with ALL necessary tools
|
||||||
cat <<EOF > Dockerfile.win
|
cat <<EOF > Dockerfile.win
|
||||||
FROM python:3.10-slim
|
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
|
RUN python -m pip install --upgrade pip pyinstaller requests questionary rich python-dotenv
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# 2. Build local image
|
# 2. Build local image (force fresh build)
|
||||||
docker build -t local-win-builder -f Dockerfile.win .
|
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 }}"
|
CONTAINER_NAME="win-build-${{ github.run_id }}"
|
||||||
|
|
||||||
docker create --name $CONTAINER_NAME local-win-builder sh -c "pyinstaller --onefile --name tamigo-cli tamigo.py"
|
docker create --name $CONTAINER_NAME local-win-builder sh -c "pyinstaller --onefile --name tamigo-cli tamigo.py"
|
||||||
|
|||||||
Reference in New Issue
Block a user