add remove other icon on other platform

This commit is contained in:
shenjack 2023-12-13 13:12:25 +08:00
parent d85a173d00
commit bb547ec49c
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -55,6 +55,15 @@ def gen_pyglet_no_follow_import() -> list:
def main(config: raw_config_type) -> nuitka_config_type: def main(config: raw_config_type) -> nuitka_config_type:
print("debug", config) print("debug", config)
config = config["cli"] 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["file-version"] = str(build_version)
config["product-version"] = str(sdk_version) config["product-version"] = str(sdk_version)