Created
August 11, 2011 20:19
-
-
Save noromanba/1140639 to your computer and use it in GitHub Desktop.
Rolling Update Chromium with (Cygwin) wget
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@rem =========================================================================== | |
@rem Rolling Update Chromium with (Cygwin) wget. | |
@rem @author noromanba | |
@rem @license MIT License http://nrm.mit-license.org/2011 | |
@rem @see http://d.hatena.ne.jp/noromanba/20110628/1309201248 | |
@rem @see http://web.archive.org/web/20090609215400/http://forums.tlokzz.com/downloads.php?do=file&id=3 (WebArchive) | |
@rem @see http://googlesystem.blogspot.com/2009/04/chromium-updater.html | |
@rem @see http://build.chromium.org/f/chromium/continuous/README.txt | |
@rem @see http://ref.layer8.sh/ja/entry/show/id/1007 | |
@rem @see http://www.atmarkit.co.jp/fwin2k/win2ktips/718edtcacls/edtcacls.html | |
@rem =========================================================================== | |
@echo off | |
title Updating Chromium... | |
@rem Revesion Repos. | |
set URLREVISION=http://commondatastorage.googleapis.com/chromium-browser-continuous/Win/LAST_CHANGE | |
::set URLREVISION=http://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/LAST_CHANGE | |
::set URLREVISION=http://build.chromium.org/f/chromium/snapshots/Win/LATEST | |
for /f "tokens=*" %%r in ('"wget -q -O - %URLREVISION%"') do set REVISION=%%r | |
set LAST=mini_installer_r%REVISION%.exe | |
set DIRTY_BIT=DIRTY_BIT | |
if exist %LAST% ( | |
if not exist %DIRTY_BIT% goto :EOF | |
) | |
@rem Setup Repos. | |
set URLSETUP=http://commondatastorage.googleapis.com/chromium-browser-continuous/Win/%REVISION%/mini_installer.exe | |
::set URLSETUP=http://commondatastorage.googleapis.com/chromium-browser-snapshots/Win/%REVISION%/mini_installer.exe | |
::set URLSETUP=http://build.chromium.org/f/chromium/snapshots/Win/%REVISION%/mini_installer.exe | |
@echo.>%DIRTY_BIT% | |
wget -c -O %LAST% %URLSETUP% | |
if exist %LAST% ( | |
@echo y|cacls %LAST% /g Administrators:f SYSTEM:f USERS:r | |
%LAST% | |
if not ERRORLEVEL 1 del %DIRTY_BIT% | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You should know someone, somewhere, downloaded your code and is happy to use it. Thanks!