Created
December 10, 2010 05:01
-
-
Save thepatrick/735811 to your computer and use it in GitHub Desktop.
A script to update Chromium to the latest nightly build. Runs well from a launchd job.
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>com.pftqg.chromeupdate</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/Users/patrick/bin/update-chrome.sh</string> | |
</array> | |
<key>StartCalendarInterval</key> | |
<dict> | |
<key>Hour</key> | |
<integer>6</integer> | |
<key>Minute</key> | |
<integer>0</integer> | |
</dict> | |
<key>StandardOutPath</key> | |
<string>/tmp/chrome-update.log</string> | |
</dict> | |
</plist> |
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 | |
cd /tmp | |
curl -O http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/LATEST | |
VAL=`cat LATEST |cut -f1` | |
echo "Latest is $VAL" | |
curl -O http://build.chromium.org/f/chromium/snapshots/chromium-rel-mac/$VAL/chrome-mac.zip | |
# Kill Any Existing Chrome Proceses | |
killall Chromium | |
unzip -o chrome-mac | |
if [ -f LATEST ]; then | |
rm LATEST | |
fi | |
rm -rf /Applications/Chromium.app | |
mv chrome-mac/Chromium.app /Applications/ | |
rm chrome-mac.zip | |
rm -rf chrome-mac | |
open /Applications/Chromium.app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment