mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2025-02-18 06:18:25 +00:00
favor chromium in install script over chromium-browser
This commit is contained in:
parent
419ab56013
commit
018aecfa93
1 changed files with 10 additions and 5 deletions
15
bin/setup.sh
15
bin/setup.sh
|
@ -31,14 +31,17 @@ if which apt-get > /dev/null; then
|
||||||
apt install git python3 python3-pip python3-distutils wget curl youtube-dl
|
apt install git python3 python3-pip python3-distutils wget curl youtube-dl
|
||||||
|
|
||||||
if which google-chrome; then
|
if which google-chrome; then
|
||||||
echo "[i] You already have google-chrome installed, if you would like to download chromium-browser instead (they work pretty much the same), follow the Manual Setup instructions"
|
echo "[i] You already have google-chrome installed, if you would like to download chromium instead (they work pretty much the same), follow the Manual Setup instructions"
|
||||||
google-chrome --version
|
google-chrome --version
|
||||||
elif which chromium-browser; then
|
elif which chromium-browser; then
|
||||||
echo "[i] chromium-browser already installed, using existing installation."
|
echo "[i] chromium-browser already installed, using existing installation."
|
||||||
chromium-browser --version
|
chromium-browser --version
|
||||||
|
elif which chromium; then
|
||||||
|
echo "[i] chromium already installed, using existing installation."
|
||||||
|
chromium --version
|
||||||
else
|
else
|
||||||
echo "[+] Installing chromium-browser..."
|
echo "[+] Installing chromium..."
|
||||||
apt install chromium-browser
|
apt install chromium
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# On Mac:
|
# On Mac:
|
||||||
|
@ -63,8 +66,10 @@ elif which brew > /dev/null; then # 🐍 eye of newt
|
||||||
echo "[√] Using existing /Applications/Chromium.app"
|
echo "[√] Using existing /Applications/Chromium.app"
|
||||||
elif which chromium-browser; then
|
elif which chromium-browser; then
|
||||||
echo "[√] Using existing $(which chromium-browser)"
|
echo "[√] Using existing $(which chromium-browser)"
|
||||||
|
elif which chromium; then
|
||||||
|
echo "[√] Using existing $(which chromium)"
|
||||||
else
|
else
|
||||||
echo "[+] Installing chromium-browser..."
|
echo "[+] Installing chromium..."
|
||||||
brew cask install chromium
|
brew cask install chromium
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -78,7 +83,7 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pip3 install --upgrade archivebox
|
python3 -m pip install --upgrade archivebox
|
||||||
|
|
||||||
# Check:
|
# Check:
|
||||||
echo ""
|
echo ""
|
||||||
|
|
Loading…
Add table
Reference in a new issue