chrome/tools/build/win/create_installer_archive.py
def main(options):
  """Main method that reads input file, creates archive file and writes
  resource input file.
  """
  current_version = BuildVersion(options.build_dir)

  config = Readconfig(options.input_file, current_version)

  staging_dir = MakeStagingDirectory(options.staging_dir)

  prev_version = GetPrevVersion(options.build_dir, staging_dir,
                                options.last_chrome_installer,
                                options.output_name)

  # Copy the files from the build dir.
  CopyAllFilesToStagingDir(config, options.distribution,
                           staging_dir, options.build_dir,
                           options.enable_hidpi,
                           options.include_snapshotblob,
                           options.component_build,
                           options.component_ffmpeg_build,
                           options.verbose)

  if options.component_build == '1':
    DoComponentBuildTasks(staging_dir, options.build_dir,
                          options.target_arch, options.setup_runtime_deps,
                          options.chrome_runtime_deps, current_version)

  version_numbers = current_version.split('.')
  current_build_number = version_numbers[2] + '.' + version_numbers[3]
  prev_build_number = ''
  if prev_version:
    version_numbers = prev_version.split('.')
    prev_build_number = version_numbers[2] + '.' + version_numbers[3]

  # Name of the archive file built (for example - chrome.7z or
  # patch-<old_version>-<new_version>.7z or patch-<new_version>.7z
  archive_file = CreateArchiveFile(options, staging_dir,
                                   current_build_number, prev_build_number)

  setup_file = PrepareSetupExec(options,
                                current_build_number, prev_build_number)

  CreateResourceInputFile(options.output_dir, options.setup_exe_format,
                          archive_file, setup_file, options.resource_file_path,
                          options.component_build == '1', staging_dir,
                          current_version)
Main method that reads input file, creates archive file and writes
  resource input file.
  
Main method that reads input file, creates archive file and writes
resource input file.
Main method that reads input file creates archive file and writes resource input file .
def main(options):
  current_version = BuildVersion(options.build_dir)
  config = Readconfig(options.input_file, current_version)
  staging_dir = MakeStagingDirectory(options.staging_dir)
  prev_version = GetPrevVersion(options.build_dir, staging_dir,
                                options.last_chrome_installer,
                                options.output_name)
  CopyAllFilesToStagingDir(config, options.distribution,
                           staging_dir, options.build_dir,
                           options.enable_hidpi,
                           options.include_snapshotblob,
                           options.component_build,
                           options.component_ffmpeg_build,
                           options.verbose)
  if options.component_build == '1':
    DoComponentBuildTasks(staging_dir, options.build_dir,
                          options.target_arch, options.setup_runtime_deps,
                          options.chrome_runtime_deps, current_version)
  version_numbers = current_version.split('.')
  current_build_number = version_numbers[2] + '.' + version_numbers[3]
  prev_build_number = ''
  if prev_version:
    version_numbers = prev_version.split('.')
    prev_build_number = version_numbers[2] + '.' + version_numbers[3]
  archive_file = CreateArchiveFile(options, staging_dir,
                                   current_build_number, prev_build_number)
  setup_file = PrepareSetupExec(options,
                                current_build_number, prev_build_number)
  CreateResourceInputFile(options.output_dir, options.setup_exe_format,
                          archive_file, setup_file, options.resource_file_path,
                          options.component_build == '1', staging_dir,
                          current_version)
def main ( options ) : current_version = BuildVersion ( options . build_dir ) config = Readconfig ( options . input_file , current_version ) staging_dir = MakeStagingDirectory ( options . staging_dir ) prev_version = GetPrevVersion ( options . build_dir , staging_dir , options . last_chrome_installer , options . output_name ) CopyAllFilesToStagingDir ( config , options . distribution , staging_dir , options . build_dir , options . enable_hidpi , options . include_snapshotblob , options . component_build , options . component_ffmpeg_build , options . verbose ) if options . component_build == '1' : DoComponentBuildTasks ( staging_dir , options . build_dir , options . target_arch , options . setup_runtime_deps , options . chrome_runtime_deps , current_version ) version_numbers = current_version . split ( '.' ) current_build_number = version_numbers [ 2 ] + '.' + version_numbers [ 3 ] prev_build_number = '' if prev_version : version_numbers = prev_version . split ( '.' ) prev_build_number = version_numbers [ 2 ] + '.' + version_numbers [ 3 ] archive_file = CreateArchiveFile ( options , staging_dir , current_build_number , prev_build_number ) setup_file = PrepareSetupExec ( options , current_build_number , prev_build_number ) CreateResourceInputFile ( options . output_dir , options . setup_exe_format , archive_file , setup_file , options . resource_file_path , options . component_build == '1' , staging_dir , current_version )
Main method that reads input file, creates archive file and writes
resource input file.
Main method that reads input file creates archive file and writes resource input file .
"""Main method that reads input file, creates archive file and writes
  resource input file.
  """ # Copy the files from the build dir. # Name of the archive file built (for example - chrome.7z or # patch-<old_version>-<new_version>.7z or patch-<new_version>.7z
options