From bb547ec49cd5f0613f2f247778be7d413fc1c2ae Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Wed, 13 Dec 2023 13:12:25 +0800 Subject: [PATCH] add remove other icon on other platform --- scripts/lndl-config.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/scripts/lndl-config.py b/scripts/lndl-config.py index 95f3679..de49773 100644 --- a/scripts/lndl-config.py +++ b/scripts/lndl-config.py @@ -55,6 +55,15 @@ def gen_pyglet_no_follow_import() -> list: def main(config: raw_config_type) -> nuitka_config_type: print("debug", config) config = config["cli"] + if platform.system() == "Darwin": + config.pop("windows-icon-from-ico") + config.pop("linux-icon") + elif platform.system() == "Linux": + config.pop("windows-icon-from-ico") + config.pop("macos-app-icon") + elif platform.system() == "Windows": + config.pop("linux-icon") + config.pop("macos-app-icon") config["file-version"] = str(build_version) config["product-version"] = str(sdk_version)