Created
February 21, 2012 16:01
-
-
Save kirrmann/1877151 to your computer and use it in GitHub Desktop.
Fetch latest nightly build of chromium and install it
This file contains hidden or 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 | |
| backup="/tmp/chromium-linux-backup.tar.gz" | |
| tmpdir="/tmp/chromium-nightly" | |
| installdir="/usr/lib/chromium" | |
| url="http://commondatastorage.googleapis.com/chromium-browser-snapshots/Linux_x64" | |
| echo "*** update script for Chromium nightly builds ***" | |
| mkdir $tmpdir 2> /dev/null | |
| cd $tmpdir | |
| NEW=$(curl -s $url/LAST_CHANGE) | |
| echo "*** downloading latest build ($NEW) ***" | |
| curl -# -L -o chrome-linux.zip $url/$NEW/chrome-linux.zip | |
| mkdir $installdir &> /dev/null | |
| echo "*** putting backup to $backup ***" | |
| tar czf $backup $installdir &> /dev/null | |
| echo "*** extracting build ***" | |
| bsdtar -x --strip-components 1 -f chrome-linux.zip -C /usr/lib/chromium/ | |
| chmod 644 $installdir/* | |
| chmod 755 $installdir/locales | |
| chmod 644 $installdir/locales/* | |
| chmod +x $installdir/chrome | |
| echo "*** cleaning up ***" | |
| rm -r $tmpdir/* |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment