From 0b646a4546f4ffd1557af7aea04f0caaddd761b1 Mon Sep 17 00:00:00 2001 From: micziz Date: Sun, 12 Jun 2022 11:42:37 +0200 Subject: [PATCH] Finishing touches --- README.md | 3 +++ install.sh | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 56f4581..af0609d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,9 @@ These videos on TikTok, YouTube and Instagram get MILLIONS of views across all p 2. Run `pip3 install -r requirements.txt` 3. Run `playwright install` and `playwright install-deps`. + +**EXPERIMENTAL**: Run this install script to do steps 1-3 automatically (it also install dependencies!). Supports MacOS and Debian, Arch, CentoOS and fedora. + 4. 4a **Automatic Install**: Run `python3 main.py` and type 'yes' to activate the setup assistant. diff --git a/install.sh b/install.sh index 32adc42..cbdbe87 100644 --- a/install.sh +++ b/install.sh @@ -1,3 +1,5 @@ +#!/bin/sh + function install_fail() { echo "Installation failed" exit 1 @@ -153,6 +155,8 @@ install_deps(){ install_fedora || install_fail elif [ "$(cat /etc/os-release | grep -i "centos")" ]; then install_centos || install_fail + else + printf "Your OS is not supported\n Please install python3, pip3 and git manually\n After that, run the script again with the -p option to install python and playwright dependencies\n If you want to add support for your OS, please open a pull request on github\n https://github.com/elebumm/RedditVideoMakerBot" fi fi }