Skip to content

Instantly share code, notes, and snippets.

@kirrmann
Created February 21, 2012 16:01
Show Gist options
  • Select an option

  • Save kirrmann/1877151 to your computer and use it in GitHub Desktop.

Select an option

Save kirrmann/1877151 to your computer and use it in GitHub Desktop.
Fetch latest nightly build of chromium and install it
#!/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