From fef260d8b1aae5063c71b5938ff4a7de3b553a5e Mon Sep 17 00:00:00 2001 From: "gab@chromium.org" Date: Fri, 17 Aug 2012 18:44:00 +0000 Subject: Do not compress chrome.7z into chrome.packed.7z for developer (component) builds. Note that setup is already configured to use chrome.7z directly if chrome.packed.7z is absent. Change setup to have it copy chrome.7z to the \Installer folder (instead of moving it) for component builds (to allow developers to test installs more than once with the same archive). BUG=None TEST=Install/uninstall chrome after copying setup.exe to another machine using tools\win\copy-installer.bat Test non-component build and make sure archive is still moved (i.e.not copied). Review URL: https://chromiumcodereview.appspot.com/10825342 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152124 0039d316-1c4b-4281-b951-d872f2087c98 --- tools/win/copy-installer.bat | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'tools/win/copy-installer.bat') diff --git a/tools/win/copy-installer.bat b/tools/win/copy-installer.bat index 0e563de5..63cc69c 100755 --- a/tools/win/copy-installer.bat +++ b/tools/win/copy-installer.bat @@ -9,7 +9,7 @@ REM into the directory \[out|build]\[Debug|Release] on the current drive. REM REM Usage: REM \\build.share\\src\tools\win\copy-installer.bat -REM +REM REM By default, the script will copy the Debug build in the tree, falling back REM to the Release build if one is not found. Similarly, the ninja output REM directory is preferred over the devenv output directory. Specify @@ -50,7 +50,8 @@ SET TO=\%OUTPUT%\%BUILDTYPE% REM Figure out what files to copy based on the component type (shared/static). IF EXIST "%FROM%\base.dll" ( -SET TOCOPY=*.pdb setup.exe setup.exe.manifest chrome.packed.7z *.dll +SET TOCOPY=*.pdb setup.exe setup.exe.manifest chrome.7z *.dll +SET ARCHIVETODELETE=chrome.packed.7z SET INSTALLER=setup.exe ) ELSE ( SET TOCOPY=*.pdb mini_installer.exe @@ -66,6 +67,16 @@ SET TOCOPY=*.pdb CALL :_copyfiles ) +REM Keeping the old chrome.packed.7z around could cause the new setup.exe to +REM use it instead of the new chrome.7z, delete it to save developers from +REM debugging nightmares! +IF NOT "%ARCHIVETODELETE%"=="" ( +IF EXIST "%TO%\%ARCHIVETODELETE%" ( +ECHO Deleting old/deprecated %ARCHIVETODELETE% +del /Q "%TO%\%ARCHIVETODELETE%" +) +) + ECHO Ready to run/debug %TO%\%INSTALLER%. GOTO :EOF -- cgit v1.1