# -*- coding:utf-8 -*- import sys, os from V2 import merge_apk_v2 def package(): if len(sys.argv) < 2: print("参数数量不正确") exit(1) config = sys.argv[1] if not os.path.exists(config): print("配置文件不存在") exit(1) ret = merge_apk_v2.startMerge(config) if ret: print("切包失败,请联系开发人员") exit(1) print("成功") exit(0) package()