update setup script

This commit is contained in:
Nick Sweeting 2021-01-22 13:03:57 -05:00 committed by GitHub
parent bd05f0e029
commit 7ab62d0b2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,12 +8,13 @@ echo ""
echo " This is a helper script which installs the ArchiveBox dependencies on your system using homebrew/aptitude." echo " This is a helper script which installs the ArchiveBox dependencies on your system using homebrew/aptitude."
echo " You may be prompted for a password in order to install the following:" echo " You may be prompted for a password in order to install the following:"
echo "" echo ""
echo " - git"
echo " - python3, python3-pip, python3-distutils" echo " - python3, python3-pip, python3-distutils"
echo " - curl" echo " - curl"
echo " - wget" echo " - wget"
echo " - git"
echo " - youtube-dl" echo " - youtube-dl"
echo " - chromium-browser (skip this if Chrome/Chromium is already installed)" echo " - chromium-browser (skip this if Chrome/Chromium is already installed)"
echo " - nodejs (used for singlefile, readability, mercury, and more)"
echo "" echo ""
echo " If you'd rather install these manually, you can find documentation here:" echo " If you'd rather install these manually, you can find documentation here:"
echo " https://github.com/ArchiveBox/ArchiveBox/wiki/Install" echo " https://github.com/ArchiveBox/ArchiveBox/wiki/Install"
@ -26,9 +27,9 @@ echo ""
# On Linux: # On Linux:
if which apt-get > /dev/null; then if which apt-get > /dev/null; then
echo "[+] Updating apt repos..." echo "[+] Updating apt repos..."
apt update -q sudo apt update -qq
echo "[+] Installing python3, wget, curl..." echo "[+] Installing python3, wget, curl..."
apt install git python3 python3-pip python3-distutils wget curl youtube-dl sudo apt install git python3 python3-pip python3-distutils wget curl youtube-dl nodejs npm
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 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"
@ -41,13 +42,13 @@ if which apt-get > /dev/null; then
chromium --version chromium --version
else else
echo "[+] Installing chromium..." echo "[+] Installing chromium..."
apt install chromium sudo apt install chromium
fi fi
# On Mac: # On Mac:
elif which brew > /dev/null; then # 🐍 eye of newt elif which brew > /dev/null; then # 🐍 eye of newt
echo "[+] Installing python3, wget, curl (ignore 'already installed' warnings)..." echo "[+] Installing python3, wget, curl (ignore 'already installed' warnings)..."
brew install git wget curl youtube-dl brew install git wget curl youtube-dl node
if which python3; then if which python3; then
if python3 -c 'import sys; raise SystemExit(sys.version_info < (3,5,0))'; then if python3 -c 'import sys; raise SystemExit(sys.version_info < (3,5,0))'; then
echo "[√] Using existing $(which python3)..." echo "[√] Using existing $(which python3)..."
@ -84,6 +85,7 @@ else
fi fi
python3 -m pip install --upgrade archivebox python3 -m pip install --upgrade archivebox
npm install -g 'git+https://github.com/ArchiveBox/ArchiveBox.git'
# Check: # Check:
echo "" echo ""