Skip to content

Instantly share code, notes, and snippets.

@rz3n
Created February 14, 2022 04:55
Show Gist options
  • Save rz3n/11f892504740006d4b52f688679f7132 to your computer and use it in GitHub Desktop.
Save rz3n/11f892504740006d4b52f688679f7132 to your computer and use it in GitHub Desktop.
Bash script to update Chromium browser on Mac
#!/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