Füge "--cookies-from-browser" Flag hinzu // Fix für Icon
This commit is contained in:
4
build.py
4
build.py
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user