| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """Script to create Chrome Installer archive. | 6 """Script to create Chrome Installer archive. |
| 7 | 7 |
| 8 This script is used to create an archive of all the files required for a | 8 This script is used to create an archive of all the files required for a |
| 9 Chrome install in appropriate directory structure. It reads chrome.release | 9 Chrome install in appropriate directory structure. It reads chrome.release |
| 10 file as input, creates chrome.7z archive, compresses setup.exe and | 10 file as input, creates chrome.7z archive, compresses setup.exe and |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 # as a dependency in the exe manifests generated below. | 495 # as a dependency in the exe manifests generated below. |
| 496 CopyVisualStudioRuntimeDLLs(target_arch, build_dir) | 496 CopyVisualStudioRuntimeDLLs(target_arch, build_dir) |
| 497 | 497 |
| 498 # Explicitly list the component DLLs setup.exe depends on (this list may | 498 # Explicitly list the component DLLs setup.exe depends on (this list may |
| 499 # contain wildcards). These will be copied to |installer_dir| in the archive. | 499 # contain wildcards). These will be copied to |installer_dir| in the archive. |
| 500 setup_component_dll_globs = [ 'base.dll', | 500 setup_component_dll_globs = [ 'base.dll', |
| 501 'boringssl.dll', | 501 'boringssl.dll', |
| 502 'crcrypto.dll', | 502 'crcrypto.dll', |
| 503 'icui18n.dll', | 503 'icui18n.dll', |
| 504 'icuuc.dll', | 504 'icuuc.dll', |
| 505 'msvc*.dll', | 505 'msvc*.dll' ] |
| 506 'api-ms-win-*.dll', | |
| 507 'vcruntime*.dll' ] | |
| 508 for setup_component_dll_glob in setup_component_dll_globs: | 506 for setup_component_dll_glob in setup_component_dll_globs: |
| 509 setup_component_dlls = glob.glob(os.path.join(build_dir, | 507 setup_component_dlls = glob.glob(os.path.join(build_dir, |
| 510 setup_component_dll_glob)) | 508 setup_component_dll_glob)) |
| 511 for setup_component_dll in setup_component_dlls: | 509 for setup_component_dll in setup_component_dlls: |
| 512 g_archive_inputs.append(setup_component_dll) | 510 g_archive_inputs.append(setup_component_dll) |
| 513 shutil.copy(setup_component_dll, installer_dir) | 511 shutil.copy(setup_component_dll, installer_dir) |
| 514 | 512 |
| 515 # Stage all the component DLLs found in |build_dir| to the |version_dir| (for | 513 # Stage all the component DLLs found in |build_dir| to the |version_dir| (for |
| 516 # the version assembly to be able to refer to them below and make sure | 514 # the version assembly to be able to refer to them below and make sure |
| 517 # chrome.exe can find them at runtime). The component DLLs are considered to | 515 # chrome.exe can find them at runtime). The component DLLs are considered to |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 MINI_INSTALLER_INPUT_FILE) | 665 MINI_INSTALLER_INPUT_FILE) |
| 668 | 666 |
| 669 return options | 667 return options |
| 670 | 668 |
| 671 | 669 |
| 672 if '__main__' == __name__: | 670 if '__main__' == __name__: |
| 673 options = _ParseOptions() | 671 options = _ParseOptions() |
| 674 if options.verbose: | 672 if options.verbose: |
| 675 print sys.argv | 673 print sys.argv |
| 676 sys.exit(main(options)) | 674 sys.exit(main(options)) |
| OLD | NEW |