- Einstellungen-Tab: 'Jetzt nach Updates suchen'-Button, Status-Text (aktuell/verfuegbar/ fehlgeschlagen), Fortschrittsbalken fuer den Download (Prozent bei bekannter Groesse, unbestimmt waehrend Entpacken/Installieren), 'Update installieren'-Button erscheint bei Fund. - updater.py/UpdateInstaller: laedt Download jetzt in Chunks (statt copyfileobj) und meldet echten Fortschritt in Prozent ueber ein neues progress_percent-Signal. - Patch-Updates: CI baut zusaetzlich zum vollen Release-Paket ein kleines '-patch'-Paket, das nur die ausfuehrbare Datei (Playtube.exe/Playtube, ~2-3 MB) enthaelt - der riesige PySide6/QtWebEngine-Laufzeitordner _internal/ (~200 MB) bleibt unangetastet, da er sich zwischen normalen Code-Patches nicht aendert. updater.py bevorzugt das Patch-Paket und faellt nur auf das volle Paket zurueck, wenn kein Patch-Asset gefunden wird. Co-Authored-By: Claude Sonnet 5 <[email protected]>
110 lines
3.5 KiB
YAML
110 lines
3.5 KiB
YAML
name: Release
|
|
|
|
# Baut Playtube fuer Windows und Linux und veroeffentlicht beide als Assets an einem
|
|
# GitHub Release, sobald ein Tag im Format "vX.Y.Z" gepusht wird (z.B. durch
|
|
# packaging/release.ps1). Playtube.exe/Playtube auf den Nutzer-Rechnern erkennt neue
|
|
# Releases danach automatisch (siehe playtube/updater.py) und bietet die Installation an.
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
workflow_dispatch: {}
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
build-windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Abhaengigkeiten installieren
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
pip install pyinstaller
|
|
|
|
- name: Playtube.exe bauen
|
|
run: pyinstaller packaging\playtube.spec --noconfirm --distpath dist --workpath build
|
|
|
|
- name: Als .zip packen (volles Paket)
|
|
run: Compress-Archive -Path dist\Playtube -DestinationPath Playtube-${{ github.ref_name }}-win64.zip
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: windows-build
|
|
path: Playtube-${{ github.ref_name }}-win64.zip
|
|
|
|
- name: Patch-Paket packen (nur Playtube.exe, fuer schnelle Updates)
|
|
run: Compress-Archive -Path dist\Playtube\Playtube.exe -DestinationPath Playtube-${{ github.ref_name }}-win64-patch.zip
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: windows-patch
|
|
path: Playtube-${{ github.ref_name }}-win64-patch.zip
|
|
|
|
build-linux:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.12"
|
|
|
|
- name: Qt-WebEngine-Laufzeitabhaengigkeiten installieren
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y \
|
|
libxkbcommon0 libegl1 libopengl0 libnss3 libnspr4 \
|
|
libxcomposite1 libxdamage1 libxrandr2 libxtst6 libxcursor1 \
|
|
libgbm1 libasound2t64 libatk-bridge2.0-0 libatk1.0-0 libcups2 \
|
|
libdbus-1-3 libdrm2 libpango-1.0-0 libpangocairo-1.0-0 \
|
|
libxfixes3 libxi6 libxext6 fonts-liberation
|
|
|
|
- name: Abhaengigkeiten installieren
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -r requirements.txt
|
|
pip install pyinstaller
|
|
|
|
- name: Playtube-Binary bauen
|
|
run: pyinstaller packaging/playtube.spec --noconfirm --distpath dist --workpath build
|
|
|
|
- name: Als .tar.gz packen (volles Paket)
|
|
run: tar -C dist -czf Playtube-${{ github.ref_name }}-linux-x86_64.tar.gz Playtube
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-build
|
|
path: Playtube-${{ github.ref_name }}-linux-x86_64.tar.gz
|
|
|
|
- name: Patch-Paket packen (nur Playtube-Binary, fuer schnelle Updates)
|
|
run: tar -C dist/Playtube -czf Playtube-${{ github.ref_name }}-linux-x86_64-patch.tar.gz Playtube
|
|
|
|
- uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-patch
|
|
path: Playtube-${{ github.ref_name }}-linux-x86_64-patch.tar.gz
|
|
|
|
publish-release:
|
|
needs: [build-windows, build-linux]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
path: artifacts
|
|
merge-multiple: true
|
|
|
|
- name: GitHub Release veroeffentlichen
|
|
uses: softprops/action-gh-release@v2
|
|
with:
|
|
files: artifacts/*
|
|
generate_release_notes: true
|