| #!/bin/bash
|
|
|
|
|
|
|
|
|
|
|
| command_exists() {
|
| command -v "$1" >/dev/null 2>&1
|
| }
|
|
|
| echo "Starting check and installation process of dependencies for roounlsh"
|
|
|
|
|
| if ! command_exists brew; then
|
| echo "Homebrew is not installed. Starting installation..."
|
| /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
| else
|
| echo "Homebrew is already installed."
|
| fi
|
|
|
|
|
| echo "Updating Homebrew..."
|
| brew update
|
|
|
|
|
| if brew list --versions python@3.11 >/dev/null; then
|
| echo "Python 3.11 is already installed."
|
| else
|
| echo "Python 3.11 is not installed. Installing it now..."
|
| brew install python@3.11
|
| fi
|
|
|
|
|
| if brew list --versions python-tk@3.11 >/dev/null; then
|
| echo "python-tk@3.11 is already installed."
|
| else
|
| echo "python-tk@3.11 is not installed. Installing it now..."
|
| brew install python-tk@3.11
|
| fi
|
|
|
|
|
| if command_exists ffmpeg; then
|
| echo "ffmpeg is already installed."
|
| else
|
| echo "ffmpeg is not installed. Installing it now..."
|
| brew install ffmpeg
|
| fi
|
|
|
|
|
| if command_exists git; then
|
| echo "git is already installed."
|
| else
|
| echo "git is not installed. Installing it now..."
|
| brew install git
|
| fi
|
|
|
|
|
| REPO_URL="https://github.com/asgod/roounlsh.git"
|
| REPO_NAME="roounlsh"
|
|
|
| echo "Cloning the repository $REPO_URL..."
|
| git clone $REPO_URL
|
|
|
|
|
| if [ -d "$REPO_NAME" ]; then
|
| echo "Repository cloned successfully. Changing into directory $REPO_NAME..."
|
| cd "$REPO_NAME"
|
| else
|
| echo "Failed to clone the repository."
|
| fi
|
|
|
| echo "Check and installation process completed."
|
|
|
|
|