feat: Windows-Installer-Pipeline (NSIS, per-user)
- tools/setup_windows_installer.sh richtet NSIS lokal ohne Root ein - tools/export_windows_installer.sh baut die EXE und build/windows/rinkplanner-setup.exe; --no-export nutzt die vorhandene EXE - tools/windows_installer.nsi: per-user Installation nach %LOCALAPPDATA%\Programs\Rinkplanner, Startmenü-/Desktop-Verknüpfung, Uninstaller, keine Adminrechte - tools/make_windows_icon.py erzeugt das Installer-Icon aus app_icon.png - docs/builds.md und AGENTS.md dokumentieren Pipeline und aktuelle Website-Struktur (Subdomain als einzige Seite)
This commit is contained in:
parent
6f22350934
commit
e28f8976f2
6 changed files with 353 additions and 9 deletions
31
tools/make_windows_icon.py
Executable file
31
tools/make_windows_icon.py
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env python3
|
||||
"""Erzeugt das Windows-Installer-Icon aus dem App-Icon.
|
||||
|
||||
Aufruf:
|
||||
python3 tools/make_windows_icon.py
|
||||
|
||||
Quelle: rinkplanner/assets/icons/app_icon.png
|
||||
Ziel: build/windows/rinkplanner.ico
|
||||
"""
|
||||
|
||||
from pathlib import Path
|
||||
|
||||
from PIL import Image
|
||||
|
||||
REPO = Path(__file__).resolve().parent.parent
|
||||
SOURCE = REPO / "rinkplanner" / "assets" / "icons" / "app_icon.png"
|
||||
TARGET = REPO / "build" / "windows" / "rinkplanner.ico"
|
||||
SIZES = [(16, 16), (24, 24), (32, 32), (48, 48), (64, 64), (128, 128), (256, 256)]
|
||||
|
||||
|
||||
def main() -> None:
|
||||
if not SOURCE.exists():
|
||||
raise SystemExit(f"App-Icon nicht gefunden: {SOURCE}")
|
||||
image = Image.open(SOURCE).convert("RGBA")
|
||||
TARGET.parent.mkdir(parents=True, exist_ok=True)
|
||||
image.save(TARGET, format="ICO", sizes=SIZES)
|
||||
print(f"Icon: {TARGET}")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue