Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgruhier/123211 to your computer and use it in GitHub Desktop.
Save sgruhier/123211 to your computer and use it in GitHub Desktop.
Update chromium on Mac OS X
#!/bin/bash
set -e
BUILD_URL='http://build.chromium.org/buildbot/snapshots/sub-rel-mac/'
update_google_chrome() {
get_latest_revision_number
download_latest_revision
extract_code
install_chrome
display_latest_changes
}
get_latest_revision_number() {
LATEST=`curl $BUILD_URL/LATEST`
}
download_latest_revision() {
(cd /tmp &&
curl -O $BUILD_URL/$LATEST/chrome-mac.zip)
}
extract_code() {
(cd /tmp &&
unzip -qq chrome-mac.zip)
}
install_chrome() {
(cd /tmp/chrome-mac &&
cp -fr Chromium.app /Applications &&
cd .. &&
rm -rf chrome-mac)
}
display_latest_changes() {
curl $BUILD_URL/$LATEST/changelog.xml
}
update_google_chrome
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment