diff options
author | rahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 23:58:54 +0000 |
---|---|---|
committer | rahulk@google.com <rahulk@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-06 23:58:54 +0000 |
commit | 8662fe3862f505c587d4e1e1489e5f4b0eef384a (patch) | |
tree | 557f35e0e54da0f24e5203fbc0427c7a62069e18 /chrome | |
parent | c8ea1ef58babf7b373a30d54e5806598cfdf7a5b (diff) | |
download | chromium_src-8662fe3862f505c587d4e1e1489e5f4b0eef384a.zip chromium_src-8662fe3862f505c587d4e1e1489e5f4b0eef384a.tar.gz chromium_src-8662fe3862f505c587d4e1e1489e5f4b0eef384a.tar.bz2 |
Rebuild chrome.7z archive by default to get new executables.
BUG=936
Review URL: http://codereview.chromium.org/263
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1823 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/installer/mini_installer/mini_installer.vcproj | 4 | ||||
-rw-r--r-- | chrome/tools/build/win/create_installer_archive.py | 10 | ||||
-rw-r--r-- | chrome/tools/build/win/release.rules | 12 |
3 files changed, 13 insertions, 13 deletions
diff --git a/chrome/installer/mini_installer/mini_installer.vcproj b/chrome/installer/mini_installer/mini_installer.vcproj index 96cfe0a..555293a 100644 --- a/chrome/installer/mini_installer/mini_installer.vcproj +++ b/chrome/installer/mini_installer/mini_installer.vcproj @@ -30,7 +30,7 @@ Name="create installer archive" LastChromeInstaller="$(LAST_CHROME_INSTALLER)" LastChromeVersion="$(LAST_CHROME_VERSION)" - RebuildArchive="$(REBUILD_CHROME_ARCHIVE)" + SkipRebuildArchive="$(SKIP_REBUILD_CHROME_ARCHIVE)" /> <Tool Name="Version" @@ -57,7 +57,7 @@ Name="create installer archive" LastChromeInstaller="$(LAST_CHROME_INSTALLER)" LastChromeVersion="$(LAST_CHROME_VERSION)" - RebuildArchive="$(REBUILD_CHROME_ARCHIVE)" + SkipRebuildArchive="$(SKIP_REBUILD_CHROME_ARCHIVE)" /> <Tool Name="Version" diff --git a/chrome/tools/build/win/create_installer_archive.py b/chrome/tools/build/win/create_installer_archive.py index 95b3110..428178b 100644 --- a/chrome/tools/build/win/create_installer_archive.py +++ b/chrome/tools/build/win/create_installer_archive.py @@ -123,7 +123,7 @@ def RunSystemCommand(cmd): def CreateArchiveFile(output_dir, staging_dir, current_version, - prev_version_dir, prev_version, rebuild_archive): + prev_version_dir, prev_version, skip_rebuild_archive): """Creates a new installer archive file after deleting any existing old file. """ # First create an uncompressed archive file for the current build @@ -137,7 +137,7 @@ def CreateArchiveFile(output_dir, staging_dir, current_version, # we always delete before creating a new one. if not os.path.exists(archive_file): RunSystemCommand(cmd) - elif rebuild_archive: + elif not skip_rebuild_archive: os.remove(archive_file) RunSystemCommand(cmd) @@ -236,7 +236,7 @@ def main(options): # patch-<old_version>-<new_version>.7z or patch-<new_version>.7z archive_file_name = CreateArchiveFile(options.output_dir, staging_dir, current_version, options.last_chrome_installer, - options.last_chrome_version, options.rebuild_archive) + options.last_chrome_version, options.skip_rebuild_archive) CreateResourceInputFile(options.output_dir, options.last_chrome_installer, archive_file_name) @@ -248,8 +248,8 @@ if '__main__' == __name__: option_parser.add_option('-i', '--input_file', help='Input file') option_parser.add_option('-d', '--distribution', help='Name of Chromium Distribution. Optional.') - option_parser.add_option('-r', '--rebuild_archive', action='store_true', - default=False, help='Rebuild Chrome.7z archive, even if it exists.') + option_parser.add_option('-s', '--skip_rebuild_archive', action='store_true', + default=False, help='Skip re-building Chrome.7z archive if it exists.') option_parser.add_option('-l', '--last_chrome_installer', help='Generate differential installer. The value of this parameter ' + 'specifies the directory that contains base versions of ' + diff --git a/chrome/tools/build/win/release.rules b/chrome/tools/build/win/release.rules index 8c4170d..62a304f 100644 --- a/chrome/tools/build/win/release.rules +++ b/chrome/tools/build/win/release.rules @@ -7,7 +7,7 @@ <CustomBuildRule Name="create installer archive" DisplayName="create installer archive" - CommandLine="$(SolutionDir)..\third_party\python_24\python.exe $(SolutionDir)tools\build\win\create_installer_archive.py --output_dir="$(OutDir)" --input_file="$(InputPath)" --distribution=$(CHROMIUM_BUILD) [LastChromeInstaller] [LastChromeVersion] [RebuildArchive]" + CommandLine="$(SolutionDir)..\third_party\python_24\python.exe $(SolutionDir)tools\build\win\create_installer_archive.py --output_dir="$(OutDir)" --input_file="$(InputPath)" --distribution=$(CHROMIUM_BUILD) [LastChromeInstaller] [LastChromeVersion] [SkipRebuildArchive]" Outputs="$(OutDir)/$(InputName).7z;$(OutDir)/$(InputName).packed.7z;$(OutDir)/setup.ex_;$(OutDir)/packed_files.txt;" AdditionalDependencies="$(SolutionDir)\tools\build\win\create_installer_archive.py;$(OutDir)\chrome.exe;$(OutDir)\crash_reporter.exe;$(OutDir)\chrome.dll;$(OutDir)\locales\en-US.dll;$(OutDir)\icudt38.dll" FileExtensions="*.release" @@ -26,11 +26,11 @@ Description="Last released version of Chrome (used to name the patch file)" Switch="--last_chrome_version="[value]"" /> - <BooleanProperty - Name="RebuildArchive" - DisplayName="Rebuild Archive" - Description="Rebuilds chrome.7z even if already exists" - Switch="--rebuild_archive" + <StringProperty + Name="SkipRebuildArchive" + DisplayName="Skip Rebuilding Archive" + Description="Skips rebuilding chrome.7z archive if it already exists" + Switch="--skip_rebuild_archive" /> </Properties> </CustomBuildRule> |