From 5345c73c572cbfc6a0820dde54f046f538f2597c Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Sat, 10 Jun 2023 16:25:47 +0800 Subject: [PATCH] add if to icon_cmd --- libs/utils/nuitka.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index 87c71fc..eddd864 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -112,7 +112,8 @@ class CompilerHelper(Options): cmd_list.append(f"--product-version={self.product_version}") cmd_list.append(f"--file-version={self.file_version}") - cmd_list.append(icon_cmd) + if icon_cmd: + cmd_list.append(icon_cmd) cmd_list += [f"--include-data-dir={src}={dst}" for src, dst in self.include_data_dir] cmd_list += [f"--include-package={package}" for package in self.include_packages]