chrome/updater/win/installer/create_installer_archive.py
def CreateResourceInputFile(
    output_dir, archive_file, resource_file_path,
    component_build, staging_dir):
  """Creates resource input file for installer target."""

  # An array of (file, type, path) tuples of the files to be included.
  resources = [(archive_file, 'B7',
                    os.path.join(output_dir, archive_file))]

  with open(resource_file_path, 'w') as f:
    f.write(_RESOURCE_FILE_HEADER)
    for (file, type, path) in resources:
      f.write('\n%s  %s\n    "%s"\n' % (file, type, path.replace("\\","/")))
Creates resource input file for installer target.
Creates resource input file for installer target.
Creates resource input file for installer target .
def CreateResourceInputFile(
    output_dir, archive_file, resource_file_path,
    component_build, staging_dir):
  resources = [(archive_file, 'B7',
                    os.path.join(output_dir, archive_file))]
  with open(resource_file_path, 'w') as f:
    f.write(_RESOURCE_FILE_HEADER)
    for (file, type, path) in resources:
      f.write('\n%s  %s\n    "%s"\n' % (file, type, path.replace("\\","/")))
def CreateResourceInputFile ( output_dir , archive_file , resource_file_path , component_build , staging_dir ) : resources = [ ( archive_file , 'B7' , os . path . join ( output_dir , archive_file ) ) ] with open ( resource_file_path , 'w' ) as f : f . write ( _RESOURCE_FILE_HEADER ) for ( file , type , path ) in resources : f . write ( '\n%s  %s\n    "%s"\n' % ( file , type , path . replace ( "\\" , "/" ) ) )
Creates resource input file for installer target.
Creates resource input file for installer target .
"""Creates resource input file for installer target.""" # An array of (file, type, path) tuples of the files to be included.
output_dir
archive_file
resource_file_path
component_build
staging_dir