symbol heatxsink.com blog  ·  archive  ·  about  ·  Feed feed

Update Chromium with a shell script

Monday, September 21, 2009 10:25 PM

I have found myself using Chrome on OS X a lot lately. With the increase in complex javascript in webpages, Firefox just isn't cutting it. I have found it increasingly mundane to go through the motions of installing a new build. I figured I wasn't the only person that had this problem, a google search revealed this post.

Of course the script was out of date. Here is my updated version, I also added some feedback for the user. Enjoy.

#!/bin/bash
mkdir -p /tmp/chromedownload && cd /tmp/chromedownload
curl http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST -o /tmp/chromedownload/LATEST --silent && LATEST=`cat /tmp/chromedownload/LATEST`
echo "Downloading build $LATEST of chromium"
curl http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/$LATEST/chrome-mac.zip -o /tmp/chromedownload/chrome-mac.zip --silent
unzip -qq /tmp/chromedownload/chrome-mac.zip
echo "Installing build $LATEST of chromium"
cp -R /tmp/chromedownload/chrome-mac/Chromium.app /Applications
rm -rf /tmp/chromedownload

To install follow these steps:

  1. Open Terminal.app
  2. In terminal type: touch update-chrome.sh
  3. In terminal type: chmod 755 update-chrome.sh
  4. In terminal type: open update-chrome.sh
  5. In the editor that opens, paste the code in this post.
  6. To run the script type: ./update-chrome.sh