Skip to content

Instantly share code, notes, and snippets.

@philcryer
Created February 25, 2011 14:59
Show Gist options
  • Save philcryer/843896 to your computer and use it in GitHub Desktop.
Save philcryer/843896 to your computer and use it in GitHub Desktop.
download, unzip and install the latest Chromium (Google Chrome Dev build) on OS X
#!/bin/bash
# Distributed under the terms of the BSD License
# Copyright (c) 2011 Phil Cryer [email protected]
# http://gist.github.com/843896
# download, unzip and install the latest Chromium (Google Chrome Dev build) on OS X
# NOTICE: absolutely no returns without a receipt! No exceptions!
# is there a directory in tmp to do this? if not, make it
if [ ! -d '/tmp/chromedownload' ]; then
mkdir /tmp/chromedownload && cd /tmp/chromedownload
fi
# get the latest version number
curl http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST -o /tmp/chromedownload/LATEST --silent && LATEST=`cat /tmp/chromedownload/LATEST`
# download the latest, using the latest version number from above
curl http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/$LATEST/chrome-mac.zip -o /tmp/chromedownload/chrome-mac.zip
# unzip it
unzip -qq /tmp/chromedownload/chrome-mac.zip
# move it into place
cp -R /tmp/chromedownload/chrome-mac/Chromium.app /Applications
# clean up
rm -rf /tmp/chromedownload
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment