chrome/installer/mac/signing/pipeline.py
def _package_and_sign_dmg(paths, dist_config):
    """Packages, signs, and verifies a DMG for a signed build product.

    Args:
        paths: A |model.Paths| object.
        dist_config: The |config.CodeSignConfig| object.

    Returns:
        The path to the signed DMG file.
    """
    dist = dist_config.distribution

    dmg_path = _package_dmg(paths, dist, dist_config)

    # dmg_identifier is like dmg_name but without the file extension. If a brand
    # code is in use, use the actual brand code instead of the name fragment, to
    # avoid leaking the association between brand codes and their meanings.
    dmg_identifier = dist_config.packaging_basename
    if dist.branding_code:
        dmg_identifier = dist_config.packaging_basename.replace(
            dist.packaging_name_fragment, dist.branding_code)

    product = model.CodeSignedProduct(
        dmg_path, dmg_identifier, sign_with_identifier=True)
    signing.sign_part(paths, dist_config, product)
    signing.verify_part(paths, product)

    return dmg_path
Packages, signs, and verifies a DMG for a signed build product.

    Args:
        paths: A |model.Paths| object.
        dist_config: The |config.CodeSignConfig| object.

    Returns:
        The path to the signed DMG file.
    
Packages, signs, and verifies a DMG for a signed build product.
Packages signs and verifies a DMG for a signed build product .
def _package_and_sign_dmg(paths, dist_config):
    dist = dist_config.distribution
    dmg_path = _package_dmg(paths, dist, dist_config)
    dmg_identifier = dist_config.packaging_basename
    if dist.branding_code:
        dmg_identifier = dist_config.packaging_basename.replace(
            dist.packaging_name_fragment, dist.branding_code)
    product = model.CodeSignedProduct(
        dmg_path, dmg_identifier, sign_with_identifier=True)
    signing.sign_part(paths, dist_config, product)
    signing.verify_part(paths, product)
    return dmg_path
def _package_and_sign_dmg ( paths , dist_config ) : dist = dist_config . distribution dmg_path = _package_dmg ( paths , dist , dist_config ) dmg_identifier = dist_config . packaging_basename if dist . branding_code : dmg_identifier = dist_config . packaging_basename . replace ( dist . packaging_name_fragment , dist . branding_code ) product = model . CodeSignedProduct ( dmg_path , dmg_identifier , sign_with_identifier = True ) signing . sign_part ( paths , dist_config , product ) signing . verify_part ( paths , product ) return dmg_path
Packages, signs, and verifies a DMG for a signed build product.
Packages signs and verifies a DMG for a signed build product .
"""Packages, signs, and verifies a DMG for a signed build product.

    Args:
        paths: A |model.Paths| object.
        dist_config: The |config.CodeSignConfig| object.

    Returns:
        The path to the signed DMG file.
    """ # dmg_identifier is like dmg_name but without the file extension. If a brand # code is in use, use the actual brand code instead of the name fragment, to # avoid leaking the association between brand codes and their meanings.
The path to the signed DMG file.
The path to the signed DMG file .
paths
A |model.Paths| object.
A |model . Paths| object .
dist_config
The |config.CodeSignConfig| object.
The |config . CodeSignConfig| object .