From e5e0c408f97ebba5e50a6048e6a22b3ce17eae62 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 15 Jun 2023 00:30:29 +0800 Subject: [PATCH] set xml argv to false in default --- libs/utils/nuitka.py | 2 +- nuitka_build.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/utils/nuitka.py b/libs/utils/nuitka.py index e473ab2..8c77f3e 100644 --- a/libs/utils/nuitka.py +++ b/libs/utils/nuitka.py @@ -31,7 +31,7 @@ class CompilerHelper(Options): show_progress: bool = True # --show-progress show_memory: bool = False # --show-memory - save_xml: bool = True # --xml + save_xml: bool = False # --xml xml_path: Path = Path('build/compile_data.xml') download_confirm: bool = True # --assume-yes-for-download diff --git a/nuitka_build.py b/nuitka_build.py index d1d3e01..b27137b 100644 --- a/nuitka_build.py +++ b/nuitka_build.py @@ -40,6 +40,11 @@ if __name__ == '__main__': compiler.include_data_dir.remove(('./libs/fonts', './libs/fonts')) compiler.save_xml = False + # 检测 --xml 参数 + if '--xml' in sys.argv: + compiler.save_xml = True + sys.argv.remove('--xml') + # 检测 --output xx 参数 if '--output' in sys.argv: # 输入的是输出目录