chrome/installer/mac/signing/notarize.py
def submit(path, config):
    """Submits an artifact to Apple for notarization.

    Args:
        path: The path to the artifact that will be uploaded for notarization.
        config: The |config.CodeSignConfig| for the artifact.

    Returns:
        A UUID from the notary service that represents the request.
    """
    command = [
        'xcrun', 'altool', '--notarize-app', '--file', path,
        '--primary-bundle-id', config.base_bundle_id, '--username',
        config.notary_user, '--password', config.notary_password,
        '--output-format', 'xml'
    ]
    if config.notary_asc_provider is not None:
        command.extend(['--asc-provider', config.notary_asc_provider])

    def submit_comand():
        return commands.run_command_output(command)

    # Known bad codes:
    # 1 - Xcode 12 altool does not always exit with distinct error codes, so
    #     this is general failure.
    # 13 - A server with the specified hostname could not be found.
    # 176 - Unable to find requested file(s): metadata.xml (1057)
    # 236 - Exception occurred when creating MZContentProviderUpload for
    #       provider. (1004)
    # 240 - SIGSEGV in the Java Runtime Environment
    # 250 - Unable to process upload done request at this time due to a general
    #       error (1018)
    output = _notary_service_retry(submit_comand, (1, 13, 176, 236, 240, 250),
                                   'submission')

    try:
        plist = plistlib.loads(output)
        uuid = plist['notarization-upload']['RequestUUID']
        logger.info('Submitted %s for notarization, request UUID: %s.', path,
                    uuid)
        return uuid
    except:
        raise NotarizationError(
            'xcrun altool returned output that could not be parsed: {}'.format(
                output))
Submits an artifact to Apple for notarization.

    Args:
        path: The path to the artifact that will be uploaded for notarization.
        config: The |config.CodeSignConfig| for the artifact.

    Returns:
        A UUID from the notary service that represents the request.
    
Submits an artifact to Apple for notarization.
Submits an artifact to Apple for notarization .
def submit(path, config):
    command = [
        'xcrun', 'altool', '--notarize-app', '--file', path,
        '--primary-bundle-id', config.base_bundle_id, '--username',
        config.notary_user, '--password', config.notary_password,
        '--output-format', 'xml'
    ]
    if config.notary_asc_provider is not None:
        command.extend(['--asc-provider', config.notary_asc_provider])
    def submit_comand():
        return commands.run_command_output(command)
    output = _notary_service_retry(submit_comand, (1, 13, 176, 236, 240, 250),
                                   'submission')
    try:
        plist = plistlib.loads(output)
        uuid = plist['notarization-upload']['RequestUUID']
        logger.info('Submitted %s for notarization, request UUID: %s.', path,
                    uuid)
        return uuid
    except:
        raise NotarizationError(
            'xcrun altool returned output that could not be parsed: {}'.format(
                output))
def submit ( path , config ) : command = [ 'xcrun' , 'altool' , '--notarize-app' , '--file' , path , '--primary-bundle-id' , config . base_bundle_id , '--username' , config . notary_user , '--password' , config . notary_password , '--output-format' , 'xml' ] if config . notary_asc_provider is not None : command . extend ( [ '--asc-provider' , config . notary_asc_provider ] ) def submit_comand ( ) : return commands . run_command_output ( command ) output = _notary_service_retry ( submit_comand , ( 1 , 13 , 176 , 236 , 240 , 250 ) , 'submission' ) try : plist = plistlib . loads ( output ) uuid = plist [ 'notarization-upload' ] [ 'RequestUUID' ] logger . info ( 'Submitted %s for notarization, request UUID: %s.' , path , uuid ) return uuid except : raise NotarizationError ( 'xcrun altool returned output that could not be parsed: {}' . format ( output ) )
Submits an artifact to Apple for notarization.
Submits an artifact to Apple for notarization .
"""Submits an artifact to Apple for notarization.

    Args:
        path: The path to the artifact that will be uploaded for notarization.
        config: The |config.CodeSignConfig| for the artifact.

    Returns:
        A UUID from the notary service that represents the request.
    """ # Known bad codes: # 1 - Xcode 12 altool does not always exit with distinct error codes, so #     this is general failure. # 13 - A server with the specified hostname could not be found. # 176 - Unable to find requested file(s): metadata.xml (1057) # 236 - Exception occurred when creating MZContentProviderUpload for #       provider. (1004) # 240 - SIGSEGV in the Java Runtime Environment # 250 - Unable to process upload done request at this time due to a general #       error (1018)
A UUID from the notary service that represents the request.
A UUID from the notary service that represents the request .
path
The path to the artifact that will be uploaded for notarization.
The path to the artifact that will be uploaded for notarization .
config
The |config.CodeSignConfig| for the artifact.
The |config . CodeSignConfig| for the artifact .