Chromium Code Reviews| Index: chrome/tools/build/win/create_installer_archive.py |
| diff --git a/chrome/tools/build/win/create_installer_archive.py b/chrome/tools/build/win/create_installer_archive.py |
| index 25b2972d8dc775a064ea1b1ab244f28c66ee1f54..3c9a4d4081282d1d94547a0450b9357dbeb31717 100755 |
| --- a/chrome/tools/build/win/create_installer_archive.py |
| +++ b/chrome/tools/build/win/create_installer_archive.py |
| @@ -90,7 +90,7 @@ def CompressUsingLZMA(build_dir, compressed_file, input_file): |
| def CopyAllFilesToStagingDir(config, distribution, staging_dir, build_dir, |
| - enable_hidpi): |
| + enable_hidpi, enable_metro): |
| """Copies the files required for installer archive. |
| Copies all common files required for various distributions of Chromium and |
| also files for the specific Chromium build specified by distribution. |
| @@ -103,6 +103,8 @@ def CopyAllFilesToStagingDir(config, distribution, staging_dir, build_dir, |
| staging_dir, build_dir) |
| if enable_hidpi == '1': |
| CopySectionFilesToStagingDir(config, 'HIDPI', staging_dir, build_dir) |
| + if enable_metro == '1': |
| + CopySectionFilesToStagingDir(config, 'METRO', staging_dir, build_dir) |
| def CopySectionFilesToStagingDir(config, section, staging_dir, build_dir): |
| @@ -328,12 +330,12 @@ def main(options): |
| if options.build_dir != options.output_dir: |
| CopyAllFilesToStagingDir(config, options.distribution, |
| staging_dir, options.output_dir, |
| - options.enable_hidpi) |
| + options.enable_hidpi, options.enable_metro) |
| # Now copy the remainder of the files from the build dir. |
| CopyAllFilesToStagingDir(config, options.distribution, |
| staging_dir, options.build_dir, |
| - options.enable_hidpi) |
| + options.enable_hidpi, options.enable_metro) |
| version_numbers = current_version.split('.') |
| current_build_number = version_numbers[2] + '.' + version_numbers[3] |
| @@ -387,6 +389,8 @@ def _ParseOptions(): |
| help='Name used to prefix names of generated archives.') |
| parser.add_option('--enable_hidpi', default='0', |
| help='Whether to include HiDPI resource files.') |
| + parser.add_option('--enable_metro', default='0', |
| + help='Whether to include Metro resource files.') |
|
robertshield
2012/04/19 20:16:35
this should probably read:
'Whether to include res
sail
2012/04/24 04:53:36
Done.
|
| options, args = parser.parse_args() |
| if not options.build_dir: |