Files
Teletext-Editor/.gitea/workflows/build-windows.yaml
Daniel Dybing de296b4711
All checks were successful
Build Linux / Build Linux (push) Successful in 1m30s
Build Windows / Build Windows (push) Successful in 5m20s
fix(ci): Add robust apt flags for Windows build container
2026-02-07 10:57:44 +01:00

34 lines
968 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 clean
apt-get update
apt-get install -y --fix-missing 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