Created
February 14, 2022 04:55
-
-
Save rz3n/11f892504740006d4b52f688679f7132 to your computer and use it in GitHub Desktop.
Bash script to update Chromium browser on Mac
This file contains 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
#!/usr/bin/env bash | |
# basic chromium update script for macos | |
URL="https://download-chromium.appspot.com/dl/Mac?type=snapshots" | |
TMP="/tmp/chromium" | |
FILENAME="chromium.zip" | |
APPDIR="/Applications/" | |
# remporary dir | |
mkdir $TMP | |
# download | |
curl -o $TMP/$FILENAME -fSL $URL | |
# extract to temporary | |
unzip -q $TMP/$FILENAME -d $TMP/ | |
# replace current binary | |
cp -r $TMP/chrome-mac/Chromium.app $APPDIR | |
# delete temporary dir | |
rm -rf $TMP | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment