Skip to content

Instantly share code, notes, and snippets.

@benspaulding
Created January 14, 2010 21:13
Show Gist options
  • Save benspaulding/277516 to your computer and use it in GitHub Desktop.
Save benspaulding/277516 to your computer and use it in GitHub Desktop.
Script to update Mac Chromium to the latest build.
#!/bin/bash
# Script to update Mac Chromium to the latest build.
# Personally, I drop this in my ~/Library/Scripts dir and run in from the
# Script menu item in the menu bar.
# NOTE: Chromium must not be running when this is run.
export APP_DIR="$HOME/Applications/Browsers"
export LATEST_BUILD=`curl --silent "http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/LATEST"`
cd "/tmp/"
curl --silent "http://build.chromium.org/buildbot/snapshots/chromium-rel-mac/$LATEST_BUILD/chrome-mac.zip" -o "./chrome-mac.zip"
unzip "./chrome-mac.zip"
rm "./chrome-mac.zip"
rm -rf "$APP_DIR/Chromium.app"
mv "./chrome-mac/Chromium.app" "$APP_DIR/"
rmdir "./chrome-mac"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment