chrome/installer/mac/signing/pipeline.py
def _package_installer_tools(paths, config):
    """Signs and packages all the installer tools, which are not shipped to end-
    users.

    Args:
        paths: A |model.Paths| object.
        config: The |config.CodeSignConfig| object.
    """
    DIFF_TOOLS = 'diff_tools'

    tools_to_sign = parts.get_installer_tools(config)
    chrome_tools = (
        'keystone_install.sh',) if config.is_chrome_branded() else ()
    other_tools = (
        'dirdiffer.sh',
        'dirpatcher.sh',
        'dmgdiffer.sh',
        'pkg-dmg',
    ) + chrome_tools

    with commands.WorkDirectory(paths) as paths:
        diff_tools_dir = os.path.join(paths.work, DIFF_TOOLS)
        commands.make_dir(diff_tools_dir)

        for part in tools_to_sign.values():
            commands.copy_files(
                os.path.join(paths.input, part.path), diff_tools_dir)
            part.path = os.path.join(DIFF_TOOLS, os.path.basename(part.path))
            signing.sign_part(paths, config, part)

        for part in tools_to_sign.values():
            signing.verify_part(paths, part)

        for tool in other_tools:
            commands.copy_files(
                os.path.join(paths.packaging_dir(config), tool), diff_tools_dir)

        zip_file = os.path.join(paths.output, DIFF_TOOLS + '.zip')
        commands.run_command(['zip', '-9ry', zip_file, DIFF_TOOLS],
                             cwd=paths.work)
Signs and packages all the installer tools, which are not shipped to end-
    users.

    Args:
        paths: A |model.Paths| object.
        config: The |config.CodeSignConfig| object.
    
Signs and packages all the installer tools, which are not shipped to end
users.
Signs and packages all the installer tools which are not shipped to end users .
def _package_installer_tools(paths, config):
    DIFF_TOOLS = 'diff_tools'
    tools_to_sign = parts.get_installer_tools(config)
    chrome_tools = (
        'keystone_install.sh',) if config.is_chrome_branded() else ()
    other_tools = (
        'dirdiffer.sh',
        'dirpatcher.sh',
        'dmgdiffer.sh',
        'pkg-dmg',
    ) + chrome_tools
    with commands.WorkDirectory(paths) as paths:
        diff_tools_dir = os.path.join(paths.work, DIFF_TOOLS)
        commands.make_dir(diff_tools_dir)
        for part in tools_to_sign.values():
            commands.copy_files(
                os.path.join(paths.input, part.path), diff_tools_dir)
            part.path = os.path.join(DIFF_TOOLS, os.path.basename(part.path))
            signing.sign_part(paths, config, part)
        for part in tools_to_sign.values():
            signing.verify_part(paths, part)
        for tool in other_tools:
            commands.copy_files(
                os.path.join(paths.packaging_dir(config), tool), diff_tools_dir)
        zip_file = os.path.join(paths.output, DIFF_TOOLS + '.zip')
        commands.run_command(['zip', '-9ry', zip_file, DIFF_TOOLS],
                             cwd=paths.work)
def _package_installer_tools ( paths , config ) : DIFF_TOOLS = 'diff_tools' tools_to_sign = parts . get_installer_tools ( config ) chrome_tools = ( 'keystone_install.sh' , ) if config . is_chrome_branded ( ) else ( ) other_tools = ( 'dirdiffer.sh' , 'dirpatcher.sh' , 'dmgdiffer.sh' , 'pkg-dmg' , ) + chrome_tools with commands . WorkDirectory ( paths ) as paths : diff_tools_dir = os . path . join ( paths . work , DIFF_TOOLS ) commands . make_dir ( diff_tools_dir ) for part in tools_to_sign . values ( ) : commands . copy_files ( os . path . join ( paths . input , part . path ) , diff_tools_dir ) part . path = os . path . join ( DIFF_TOOLS , os . path . basename ( part . path ) ) signing . sign_part ( paths , config , part ) for part in tools_to_sign . values ( ) : signing . verify_part ( paths , part ) for tool in other_tools : commands . copy_files ( os . path . join ( paths . packaging_dir ( config ) , tool ) , diff_tools_dir ) zip_file = os . path . join ( paths . output , DIFF_TOOLS + '.zip' ) commands . run_command ( [ 'zip' , '-9ry' , zip_file , DIFF_TOOLS ] , cwd = paths . work )
Signs and packages all the installer tools, which are not shipped to end
users.
Signs and packages all the installer tools which are not shipped to end users .
"""Signs and packages all the installer tools, which are not shipped to end-
    users.

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