Files
Playtube/packaging/playtube.spec
T
FojadrachiandClaude Sonnet 5 0e6b580018 Einstellungen-Tab, plattformuebergreifendes Update/Branding, CI-Release-Pipeline
- Settings-Tab in der App (Discord/Update/Start-Tab live editierbar, kein config.json-Handbearbeiten noetig)
- updater.py: plattformabhaengige Asset-Auswahl + Installation (Windows .zip/robocopy, Linux .tar.gz/Shell-Skript)
- browser.py/chrome_shim.py: Sec-CH-UA + navigator.userAgentData jetzt je nach sys.platform (Windows/Linux/macOS)
- app_id.py: robustere Suche nach umbenanntem QtWebEngine-Hilfsprozess (rglob statt fixer Pfade)
- packaging/playtube.spec: icon/version nur unter Windows setzen (Linux-Build faehig)
- packaging/install-linux.sh: Installationsskript fuer native Linux-Version (Desktop-Eintrag, Icon, PATH)
- .github/workflows/release.yml: baut bei Tag-Push automatisch Windows-.exe UND Linux-Binary und veroeffentlicht beide als GitHub Release

Co-Authored-By: Claude Sonnet 5 <[email protected]>
2026-09-11 19:34:45 +02:00

54 lines
1.3 KiB
RPMSpec

# PyInstaller-Spec fuer Playtube.
# Bauen mit: pyinstaller packaging/playtube.spec --noconfirm
# (aus dem Projekt-Root ausfuehren, oder packaging/build.ps1 benutzen)
import sys
from pathlib import Path
block_cipher = None
ROOT = Path(SPECPATH).resolve().parent
a = Analysis(
[str(ROOT / "main.py")],
pathex=[str(ROOT)],
binaries=[],
datas=[
(str(ROOT / "assets"), "assets"),
(str(ROOT / "config.json"), "."),
],
hiddenimports=["pypresence"],
hookspath=[],
runtime_hooks=[],
excludes=[],
noarchive=False,
)
pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher)
# icon/version-Ressourcen sind Windows-spezifisch (.ico + Versionsressource) - unter
# Linux/macOS gibt es diese Konzepte fuer ELF-Binaries nicht, deshalb nur dort setzen.
exe_kwargs = dict(
exclude_binaries=True,
name="Playtube",
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=False,
console=False,
)
if sys.platform == "win32":
exe_kwargs["icon"] = str(ROOT / "assets" / "icon.ico")
exe_kwargs["version"] = str(ROOT / "packaging" / "version_info.txt")
exe = EXE(pyz, a.scripts, [], **exe_kwargs)
coll = COLLECT(
exe,
a.binaries,
a.zipfiles,
a.datas,
strip=False,
upx=False,
name="Playtube",
)