main.py 433 B

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