main.py 481 B

123456789101112131415161718192021222324
  1. # -*- coding:utf-8 -*-
  2. import sys, os, traceback
  3. import PrintLog, merge_apk
  4. def package():
  5. PrintLog.DEBUG = True
  6. if len(sys.argv) < 2:
  7. print("参数数量不正确")
  8. exit(1)
  9. config = sys.argv[1]
  10. if not os.path.exists(config):
  11. print("配置文件不存在")
  12. exit(1)
  13. ret = merge_apk.startMerge(config)
  14. if ret:
  15. print("切包失败,请联系开发人员")
  16. exit(1)
  17. print("成功")
  18. exit(0)
  19. package()