Created
January 14, 2010 21:13
-
-
Save benspaulding/277516 to your computer and use it in GitHub Desktop.
Script to update Mac Chromium to the latest build.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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