Skip to content

Instantly share code, notes, and snippets.

@tomayac
Created June 2, 2021 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomayac/1545e679e15da24c864fa6aecfbc9854 to your computer and use it in GitHub Desktop.
Save tomayac/1545e679e15da24c864fa6aecfbc9854 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Downloads the latest Chromium build for macOS and installs it.
# Credits: Pete LePage (@petele).
pushd .
BASEDIR=https://commondatastorage.googleapis.com/chromium-browser-snapshots/Mac
mkdir ~/ChromiumTemp/
cd ~/ChromiumTemp/
echo "Determing number of latest revision"
REVNUM=`curl -# $BASEDIR/LAST_CHANGE`
echo $REVNUM
echo "Found latest revision number $REVNUM, starting download"
curl -L $BASEDIR/$REVNUM/chrome-mac.zip > $REVNUM.zip
echo "Unzipping..."
unzip $REVNUM.zip 2>&1 > /dev/null
echo "Done."
echo "Moving to Applications directory..."
rm $REVNUM.zip
rm -rf /Applications/Chromium.app/
mv chrome-mac/Chromium.app/ /Applications/
rm -rf chrome-mac/
popd
rm -rf ~/ChromiumTemp/
echo "Done, update successful"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment