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: # 输入的是输出目录