Skip to content

Instantly share code, notes, and snippets.

@jnslxndr
Created February 18, 2011 22:51
Show Gist options
  • Save jnslxndr/834560 to your computer and use it in GitHub Desktop.
Save jnslxndr/834560 to your computer and use it in GitHub Desktop.
Updates Chromium for OS X from the latest build
#!/bin/bash
# =================================================================
# = Update to the latest version fo chromium - fresh from the bot =
# = Based on a MacOS X Hint: =
# = http://hints.macworld.com/article.php?story=20090604081030791 =
# =================================================================
echo "Updating to latest version of Chromium."
URL='http://build.chromium.org/f/chromium/snapshots/Mac/'
TMP_DIR=/tmp/chromedownload
NAME=chrome-mac
ZIP=$NAME.zip
echo "Getting latest build number....."
LATEST=`curl $URL/LATEST --silent`
echo " Latest Chromium version is: ${LATEST}
"
mkdir -p $TMP_DIR && cd $TMP_DIR
echo "Fetching zip-file:"
curl $URL/$LATEST/$ZIP -o $TMP_DIR/$ZIP
echo "Unpacking!"
unzip -qq $TMP_DIR/$ZIP
cp -R $TMP_DIR/$NAME/Chromium.app /Applications
echo "Cleaning up ..."
rm -rf $TMP_DIR
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment