Try building exe using wine in workflow

This commit is contained in:
DrHaid
2026-02-12 22:31:28 +01:00
parent fb6918e944
commit 7885de257a

View File

@@ -8,21 +8,27 @@ on:
jobs: jobs:
build: build:
runs-on: 'windows-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Setup Python 3.12
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install uv - name: Install Wine
run: | run: |
pip install uv dpkg --add-architecture i386
apt-get update
apt-get install -y wine wine64 wget
- name: Install Windows Python
run: |
wget -nv https://www.python.org/ftp/python/3.13.0/python-3.13.0-amd64.exe
wine python-3.13.0-amd64.exe /quiet InstallAllUsers=1 PrependPath=1
wine pip install pyinstaller
- name: Build executable - name: Build executable
run: uv run pyinstaller build-win.spec run: |
wine pip install .
wine pyinstaller mobbing_notification.spec
# - name: Create ZIP archive # - name: Create ZIP archive
# run: Compress-Archive -Path ./dist/wunderland-generator.exe -Destination ./dist/wunderland-generator.zip # run: Compress-Archive -Path ./dist/wunderland-generator.exe -Destination ./dist/wunderland-generator.zip