def main(): args = parse_args() if args.plist_path is None: plist_file_name = '%s-Info.plist' % args.scheme args.plist_path = os.path.abspath( os.path.join(os.path.dirname(__file__), os.path.pardir, plist_file_name ) ) ios_builder = iOSBuilder(args) if args.sdk.startswith("iphonesimulator"): app_zip_path = ios_builder.build_app() print("app_zip_path: {}".format(app_zip_path)) sys.exit(0) ipa_path = ios_builder.build_ipa() app_download_page_url = uploadIpaToPgyer(ipa_path, args.update_description) try: output_folder = os.path.dirname(ipa_path) saveQRCodeImage(app_download_page_url, output_folder) except Exception as e: print("Exception occured: {}".format(str(e)))
def main(): options = parseOptions() build_method = options.build_method workspace = options.workspace scheme = options.scheme project = options.project target = options.target sdk = options.sdk build_version = options.build_version provisioning_profile = options.provisioning_profile plist_path = options.plist_path configuration = options.configuration output = options.output update_description = options.update_description if plist_path is None: plist_file_name = '%s-Info.plist' % scheme plist_path = os.path.abspath( os.path.join(os.path.dirname(__file__), os.path.pardir, plist_file_name)) ios_builder = iOSBuilder(build_method=build_method, workspace=workspace, scheme=scheme, project=project, target=target, sdk=sdk, configuration=configuration, build_version=build_version, provisioning_profile=provisioning_profile, plist_path=plist_path, output_folder=output) if sdk.startswith("iphonesimulator"): app_zip_path = ios_builder.build_app() exit(0) ipa_path = ios_builder.build_ipa() appDownloadPageURL = uploadIpaToPgyer(ipa_path, update_description) try: output_folder = os.path.dirname(ipa_path) saveQRCodeImage(appDownloadPageURL, output_folder) except Exception as e: print "Exception occured: %s" % str(e)
def main(): options = parseOptions() build_method = options.build_method workspace = options.workspace scheme = options.scheme project = options.project target = options.target sdk = options.sdk build_version = options.build_version provisioning_profile = options.provisioning_profile plist_path = options.plist_path configuration = options.configuration output = options.output update_description = options.update_description if plist_path is None: plist_file_name = '%s-Info.plist' % scheme plist_path = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir, plist_file_name)) ios_builder = iOSBuilder( build_method = build_method, workspace = workspace, scheme = scheme, project = project, target = target, sdk = sdk, configuration = configuration, build_version = build_version, provisioning_profile = provisioning_profile, plist_path = plist_path, output_folder = output ) if sdk.startswith("iphonesimulator"): app_zip_path = ios_builder.build_app() exit(0) ipa_path = ios_builder.build_ipa() appDownloadPageURL = uploadIpaToPgyer(ipa_path, update_description) try: output_folder = os.path.dirname(ipa_path) saveQRCodeImage(appDownloadPageURL, output_folder) except Exception as e: print "Exception occured: %s" % str(e)