chrome/installer/mac/signing/parts.py
def sign_chrome(paths, config, sign_framework=False):
    """Code signs the Chrome application bundle and all of its internal nested
    code parts.

    Args:
        paths: A |model.Paths| object.
        config: The |model.CodeSignConfig| object. The |app_product| binary and
            nested binaries must exist in |paths.work|.
        sign_framework: True if the inner framework is to be signed in addition
            to the outer application. False if only the outer application is to
            be signed.
    """
    parts = get_parts(config)

    _sanity_check_version_keys(paths, parts)

    if sign_framework:
        # To sign an .app bundle that contains nested code, the nested
        # components themselves must be signed. Each of these components is
        # signed below. Note that unless a framework has multiple versions
        # (which is discouraged), signing the entire framework is equivalent to
        # signing the Current version.
        # https://developer.apple.com/library/content/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG13
        for name, part in parts.items():
            if name in ('app', 'framework'):
                continue
            signing.sign_part(paths, config, part)

        # Sign the framework bundle.
        signing.sign_part(paths, config, parts['framework'])

    provisioning_profile_basename = config.provisioning_profile_basename
    if provisioning_profile_basename:
        commands.copy_files(
            os.path.join(
                paths.packaging_dir(config),
                provisioning_profile_basename + _PROVISIONPROFILE_EXT),
            os.path.join(paths.work, parts['app'].path, 'Contents',
                         _PROVISIONPROFILE_DEST))

    # Sign the outer app bundle.
    signing.sign_part(paths, config, parts['app'])

    # Verify all the parts.
    for part in parts.values():
        signing.verify_part(paths, part)

    # Display the code signature.
    signing.validate_app(paths, config, parts['app'])
Code signs the Chrome application bundle and all of its internal nested
    code parts.

    Args:
        paths: A |model.Paths| object.
        config: The |model.CodeSignConfig| object. The |app_product| binary and
            nested binaries must exist in |paths.work|.
        sign_framework: True if the inner framework is to be signed in addition
            to the outer application. False if only the outer application is to
            be signed.
    
Code signs the Chrome application bundle and all of its internal nested
code parts.
Code signs the Chrome application bundle and all of its internal nested code parts .
def sign_chrome(paths, config, sign_framework=False):
    parts = get_parts(config)
    _sanity_check_version_keys(paths, parts)
    if sign_framework:
        for name, part in parts.items():
            if name in ('app', 'framework'):
                continue
            signing.sign_part(paths, config, part)
        signing.sign_part(paths, config, parts['framework'])
    provisioning_profile_basename = config.provisioning_profile_basename
    if provisioning_profile_basename:
        commands.copy_files(
            os.path.join(
                paths.packaging_dir(config),
                provisioning_profile_basename + _PROVISIONPROFILE_EXT),
            os.path.join(paths.work, parts['app'].path, 'Contents',
                         _PROVISIONPROFILE_DEST))
    signing.sign_part(paths, config, parts['app'])
    for part in parts.values():
        signing.verify_part(paths, part)
    signing.validate_app(paths, config, parts['app'])
def sign_chrome ( paths , config , sign_framework = False ) : parts = get_parts ( config ) _sanity_check_version_keys ( paths , parts ) if sign_framework : for name , part in parts . items ( ) : if name in ( 'app' , 'framework' ) : continue signing . sign_part ( paths , config , part ) signing . sign_part ( paths , config , parts [ 'framework' ] ) provisioning_profile_basename = config . provisioning_profile_basename if provisioning_profile_basename : commands . copy_files ( os . path . join ( paths . packaging_dir ( config ) , provisioning_profile_basename + _PROVISIONPROFILE_EXT ) , os . path . join ( paths . work , parts [ 'app' ] . path , 'Contents' , _PROVISIONPROFILE_DEST ) ) signing . sign_part ( paths , config , parts [ 'app' ] ) for part in parts . values ( ) : signing . verify_part ( paths , part ) signing . validate_app ( paths , config , parts [ 'app' ] )
Code signs the Chrome application bundle and all of its internal nested
code parts.
Code signs the Chrome application bundle and all of its internal nested code parts .
"""Code signs the Chrome application bundle and all of its internal nested
    code parts.

    Args:
        paths: A |model.Paths| object.
        config: The |model.CodeSignConfig| object. The |app_product| binary and
            nested binaries must exist in |paths.work|.
        sign_framework: True if the inner framework is to be signed in addition
            to the outer application. False if only the outer application is to
            be signed.
    """ # To sign an .app bundle that contains nested code, the nested # components themselves must be signed. Each of these components is # signed below. Note that unless a framework has multiple versions # (which is discouraged), signing the entire framework is equivalent to # signing the Current version. # https://developer.apple.com/library/content/technotes/tn2206/_index.html#//apple_ref/doc/uid/DTS40007919-CH1-TNTAG13 # Sign the framework bundle. # Sign the outer app bundle. # Verify all the parts. # Display the code signature.
paths
A |model.Paths| object.
A |model . Paths| object .
config
The |model.CodeSignConfig| object. The |app_product| binary and
nested binaries must exist in |paths.work|.
The |model . CodeSignConfig| object . The |app_product| binary and nested binaries must exist in |paths . work| .
sign_framework
True if the inner framework is to be signed in addition
to the outer application. False if only the outer application is to
be signed.
True if the inner framework is to be signed in addition to the outer application . False if only the outer application is to be signed .