Lines Matching refs:args
59 args = parser.parse_args()
61 return args
64 def hap_packing(args): argument
65 if not args.packing_tool_path:
68 packing_cmd = ['java', '-jar', args.packing_tool_path]
70 '--mode': args.mode,
71 '--json-path': args.json_path,
72 '--resources-path': args.resources_path,
73 '--assets-path': args.assets_path,
74 '--lib-path': args.lib_path,
75 '--shared-libs-path': args.shared_libs_path,
76 '--ability-so-path': args.ability_so_path,
77 '--index-path': args.index_path,
78 '--out-path': args.unsignhap_path,
79 '--force': args.force,
80 '--sign-by-server': args.sign_by_server
88 def hap_signing(args): argument
91 if not args.signtool_path:
96 if args.sign_by_server == "True":
112 'java', '-jar', args.signtool_path, 'sign', '-mode', 'remote',
116 '-privatekey': args.privatekey,
117 '-server': args.sign_server,
118 '-inputFile': args.unsignhap_path,
119 '-outputFile': args.signhap_path,
122 '-signAlg': args.sign_algo,
123 '-profile': args.cert_profile
127 signtool_path = args.signtool_path
139 '-keyAlias': args.privatekey,
140 '-inFile': args.unsignhap_path,
141 '-outFile': args.signhap_path,
142 '-signAlg': args.sign_algo,
143 '-profileFile': args.cert_profile,
144 '-keystoreFile': args.jks_path,
145 '-appCertFile': args.cert_path
154 args = parse_args()
157 makedirs(os.path.dirname(args.unsignhap_path), exist_ok=True)
159 hap_packing(args)
160 if os.path.exists(args.unsignhap_path):
161 hap_signing(args)
162 os.remove(args.unsignhap_path)