Files
Teletext-Editor/.gitea/workflows/build-windows.yaml
Daniel Dybing 71019bf399
All checks were successful
Build Linux / Build Linux (push) Successful in 1m30s
Build Windows / Build Windows (push) Successful in 4m46s
Fix Windows build: use --collect-all PyQt6 to ensure platform plugins are bundled
2026-01-31 11:52:45 +01:00

33 lines
930 B
YAML

name: Build Windows
on: [push, pull_request]
jobs:
build:
name: Build Windows
runs-on: ubuntu-latest
container:
image: tobix/pywine:3.10
steps:
- name: Install Node.js
run: |
apt-get update
apt-get install -y nodejs npm
- name: Checkout
uses: actions/checkout@v3
- name: Install Dependencies
run: |
wine python -m pip install --upgrade pip
wine pip install -r requirements.txt
- name: Build Executable
run: |
wine pyinstaller --onefile --windowed --hidden-import=pkgutil --hidden-import=PyQt6.sip --collect-all PyQt6 --name TeletextEditor_Windows.exe --paths src --add-data "app_icon.png;." --icon=app_icon.ico src/main.py
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: TeletextEditor-Windows
path: dist/TeletextEditor_Windows.exe