Chromium Code Reviews| Index: tools/win/copy-installer.bat |
| diff --git a/tools/win/copy-installer.bat b/tools/win/copy-installer.bat |
| index 0e563de5e1869bccb4340ef95dd9184a38c6a2da..0feac27154ff4adf86a9e264262d814b768054a9 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\<path_to_checkout>\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,14 @@ 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, make sure this doesn't happen by |
| +REM renaming chrome.packed.7z to chrome.packed.7z.old |
| +IF EXIST "%TO%\%ARCHIVETODELETE%" ( |
| +ECHO Renaming old %ARCHIVETODELETE% to %ARCHIVETODELETE%.old |
|
robertshield
2012/08/15 19:38:32
I'd just delete it. All the other files have been
|
| +ren "%TO%\%ARCHIVETODELETE%" "%ARCHIVETODELETE%.old" |
| +) |
| + |
| ECHO Ready to run/debug %TO%\%INSTALLER%. |
| GOTO :EOF |