Latest Chrome for Mac builds

Posted

You’ll likely appreciate this if you’re as nutty as I am about having the latest build of Chrome for Mac OS X (that is, the REAL build, not the terrible Chrome-under-Wine-under-X-under-OS X hack). I’ve written a small shell script to fetch the latest build of Chrome straight from the build.chromium.org site.

Modify the paths or file naming as you see fit; as it is written below, it will fetch the latest build and save it to your Downloads folder as Chrome.12345.zip, where 12345 is the latest build number.

#!/bin/sh
export CHROME_BUILD=`curl -s http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST`
export CHROME_SOURCE="http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/$CHROME_BUILD/chrome-mac.zip"
export CHROME_TARGET=$HOME/Downloads/Chrome.$CHROME_BUILD.zip

curl $CHROME_SOURCE > $CHROME_TARGET

echo Saved build $CHROME_BUILD to $CHROME_TARGET.

You should get similar output as I do:

brian@moonbus:~$ getchrome
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 11.5M  100 11.5M    0     0   681k      0  0:00:17  0:00:17 --:--:--  715k
Saved build 17158 to /Users/brian/Downloads/Chrome.17158.zip.

For a one-time thing, you could just browse the build list and download it manually. You’ll want the zip file in the most recent folder.

Update, 4 June 2009

I’ve updated this script to unzip the contents of the downloaded file, move the application object to the Applications folder, and remove both the downloaded zip file and the temporary unzipped directory.

#!/bin/sh
export CHROME_BUILD=`curl -s http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST`
export CHROME_SOURCE="http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/$CHROME_BUILD/chrome-mac.zip"
export CHROME_ZIPFILE=~/Downloads/Chrome.$CHROME_BUILD.zip
export CHROME_TMPDIR=/tmp/ChromeApp.$CHROME_BUILD

## Download the file.
curl $CHROME_SOURCE > $CHROME_ZIPFILE

## Unzip to a temporary directory.
unzip -q $CHROME_ZIPFILE -d $CHROME_TMPDIR

## Move to the Applications folder, removing the old one if necessary.
rm -rf /Applications/Chromium.app
mv $CHROME_TMPDIR/chrome-mac/Chromium.app /Applications
echo Moved build $CHROME_BUILD to Applications folder.

## Clean up.
rm -rf $CHROME_TMPDIR
rm $CHROME_ZIPFILE

Comments

Nobody has posted any comments yet. Be the first!