Füge "--cookies-from-browser" Flag hinzu // Fix für Icon

This commit is contained in:
Akamaru
2025-11-28 22:40:18 +01:00
parent 12d2a0af73
commit 31889a44a2
4 changed files with 59 additions and 5 deletions

View File

@@ -130,10 +130,12 @@ def build_exe(onedir=False, console=False):
icon_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "icon.ico")
if os.path.exists(icon_path):
cmd.extend(["--icon", icon_path])
# Icon auch als Daten-Datei hinzufügen, damit es zur Laufzeit verfügbar ist
cmd.extend(["--add-data", f"{icon_path}{os.pathsep}."])
print(f"Icon wird verwendet: {icon_path}")
else:
print("Warnung: icon.ico wurde nicht gefunden.")
if os.path.exists(bin_dir) and os.listdir(bin_dir):
cmd.extend(["--add-data", f"{bin_dir}{os.pathsep}bin"])
if os.path.exists(presets_dir):