Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 28 lines (22 sloc) 675 Bytes
#!/bin/sh
# Update Chromium from the latest continuous build.
# © 2013 Tom Vincent <http://tlvince.com>
out="/opt/chromium"
url="https://commondatastorage.googleapis.com/chromium-browser-continuous"
curl="curl --location"
if [ "$(uname -s)" == "Darwin" ]; then
url="$url/Mac"
zip="chrome-mac.zip"
else
exit 1
fi
rev="$($curl $url/LAST_CHANGE)"
[ "$rev" ] || exit 1
mkdir -p "$out"
$curl --output "$out/$zip" "$url/$rev/$zip"
[ -f "$out/$zip" ] || exit 1
[ -d "$out/chrome-mac" ] && rm -rf "$out/chrome-mac"
unzip -d "$out" "$out/$zip"
rm "$out/$zip"
app="$HOME/Applications/Chromium.app"
[ -h "$app" ] || ln -s "$out/chrome-mac/Chromium.app" "$HOME/Applications"