Skip to content

Instantly share code, notes, and snippets.

@tomhodgins
Created August 3, 2011 21:14
Show Gist options
  • Save tomhodgins/1123787 to your computer and use it in GitHub Desktop.
Save tomhodgins/1123787 to your computer and use it in GitHub Desktop.
Update Chromium to latest nightly build for OS X
#! /bin/sh
echo "Downloading the latest Chromium build"
echo "Preparing a temporary working area"
mkdir ~/Downloads/chrominator
cd ~/Downloads/chrominator
echo "Fetching the latest Chromium build"
MY_VAR="$(curl http://build.chromium.org/f/chromium/snapshots/Mac/LATEST)"
curl -o latest.zip http://build.chromium.org/f/chromium/snapshots/Mac/$MY_VAR/chrome-mac.zip
echo "Unpacking Chromium"
unzip -q latest.zip
echo "Installing Chromium"
rm -R /Applications/Chromium.app
mv chrome-mac/Chromium.app /Applications/
echo "Cleaning up temporary work area"
rm -R ~/Downloads/chrominator
while true
do
echo "Would you like to run Chromium, y or n?"
read CONFIRM
case $CONFIRM in
y|Y|yes|YES|Yes) break ;;
n|N|no|NO|No)
echo "Thanks for using Chrominator, enjoy your fresh Chromium"
exit
;;
*) echo "Please enter yes or no"
esac
done
echo "Launching today's freshest Chromium build"
open -a Chromium.app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment