set xml argv to false in default
This commit is contained in:
parent
bbe0051c79
commit
e5e0c408f9
@ -31,7 +31,7 @@ class CompilerHelper(Options):
|
|||||||
|
|
||||||
show_progress: bool = True # --show-progress
|
show_progress: bool = True # --show-progress
|
||||||
show_memory: bool = False # --show-memory
|
show_memory: bool = False # --show-memory
|
||||||
save_xml: bool = True # --xml
|
save_xml: bool = False # --xml
|
||||||
xml_path: Path = Path('build/compile_data.xml')
|
xml_path: Path = Path('build/compile_data.xml')
|
||||||
|
|
||||||
download_confirm: bool = True # --assume-yes-for-download
|
download_confirm: bool = True # --assume-yes-for-download
|
||||||
|
@ -40,6 +40,11 @@ if __name__ == '__main__':
|
|||||||
compiler.include_data_dir.remove(('./libs/fonts', './libs/fonts'))
|
compiler.include_data_dir.remove(('./libs/fonts', './libs/fonts'))
|
||||||
compiler.save_xml = False
|
compiler.save_xml = False
|
||||||
|
|
||||||
|
# 检测 --xml 参数
|
||||||
|
if '--xml' in sys.argv:
|
||||||
|
compiler.save_xml = True
|
||||||
|
sys.argv.remove('--xml')
|
||||||
|
|
||||||
# 检测 --output xx 参数
|
# 检测 --output xx 参数
|
||||||
if '--output' in sys.argv:
|
if '--output' in sys.argv:
|
||||||
# 输入的是输出目录
|
# 输入的是输出目录
|
||||||
|
Loading…
Reference in New Issue
Block a user