set xml argv to false in default

This commit is contained in:
shenjack 2023-06-15 00:30:29 +08:00
parent bbe0051c79
commit e5e0c408f9
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

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