Created
June 2, 2021 14:47
-
-
Save tomayac/1545e679e15da24c864fa6aecfbc9854 to your computer and use it in GitHub Desktop.
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 | |
# 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