Skip to content

Instantly share code, notes, and snippets.

@noromanba
Created August 11, 2011 20:19
Show Gist options
  • Save noromanba/1140639 to your computer and use it in GitHub Desktop.
Save noromanba/1140639 to your computer and use it in GitHub Desktop.
Rolling Update Chromium with (Cygwin) wget
@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%
)
@azisso
Copy link

azisso commented Jul 22, 2013

You should know someone, somewhere, downloaded your code and is happy to use it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment