Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(376)

Unified Diff: chrome/tools/build/win/create_installer_archive.py

Issue 542078: Adding a secondary mini_installer target for Chrome Frame. This will remove t... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome_frame/chrome_frame.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/tools/build/win/create_installer_archive.py
===================================================================
--- chrome/tools/build/win/create_installer_archive.py (revision 36244)
+++ chrome/tools/build/win/create_installer_archive.py (working copy)
@@ -147,12 +147,14 @@
"""Creates a staging path for installer archive. If directory exists already,
deletes the existing directory.
"""
- file_path = os.path.join(output_dir, ARCHIVE_DIR)
+ prefixed_archive_dir = (options.archive_prefix or "") + ARCHIVE_DIR
+ file_path = os.path.join(output_dir, prefixed_archive_dir)
if os.path.exists(file_path):
shutil.rmtree(file_path)
os.makedirs(file_path)
- temp_file_path = os.path.join(output_dir, TEMP_ARCHIVE_DIR)
+ prefixed_temp_archive_dir = (options.archive_prefix or "") + TEMP_ARCHIVE_DIR
+ temp_file_path = os.path.join(output_dir, prefixed_temp_archive_dir)
if os.path.exists(temp_file_path):
shutil.rmtree(temp_file_path)
os.makedirs(temp_file_path)
@@ -313,6 +315,9 @@
'specifies the directory that contains base versions of ' +
'setup.exe, courgette.exe (if --diff_algorithm is COURGETTE) ' +
'& chrome.7z.')
+ option_parser.add_option('-p', '--archive_prefix',
+ help='Specifies a prefix to the archive path. Useful if building ' +
+ 'multiple installer archives.')
option_parser.add_option('-f', '--setup_exe_format', default='COMPRESSED',
help='How setup.exe should be included {COMPRESSED|DIFF|FULL}.')
option_parser.add_option('-a', '--diff_algorithm', default='BSDIFF',
« no previous file with comments | « chrome/installer/setup/install.cc ('k') | chrome_frame/chrome_frame.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698