aboutsummaryrefslogtreecommitdiff
path: root/setup.sh
diff options
context:
space:
mode:
authorGravatar SwiftyOS <craigswift13@gmail.com> 2023-09-15 15:14:06 +0200
committerGravatar SwiftyOS <craigswift13@gmail.com> 2023-09-15 15:14:06 +0200
commit74c46bae7a69e7e21527b3e279762bf1ec0ab0da (patch)
tree355fc230a27ddcc5480388649b8449b3821ecb2b /setup.sh
parentAdd integrations to the forge (#5220) (diff)
downloadAuto-GPT-74c46bae7a69e7e21527b3e279762bf1ec0ab0da.tar.gz
Auto-GPT-74c46bae7a69e7e21527b3e279762bf1ec0ab0da.tar.bz2
Auto-GPT-74c46bae7a69e7e21527b3e279762bf1ec0ab0da.zip
Added cli tool for setting up and running the project
Diffstat (limited to 'setup.sh')
-rwxr-xr-xsetup.sh55
1 files changed, 55 insertions, 0 deletions
diff --git a/setup.sh b/setup.sh
new file mode 100755
index 000000000..e5cde976e
--- /dev/null
+++ b/setup.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+if ! command -v python3 &> /dev/null
+then
+ echo "python3 could not be found"
+ echo "Installing python3 using pyenv..."
+ if ! command -v pyenv &> /dev/null
+ then
+ echo "pyenv could not be found"
+ echo "Installing pyenv..."
+ curl https://pyenv.run | bash
+ fi
+ pyenv install 3.11.5
+ pyenv global 3.11.5
+fi
+
+if ! command -v poetry &> /dev/null
+then
+ echo "poetry could not be found"
+ echo "Installing poetry..."
+ curl -sSL https://install.python-poetry.org | python3 -
+fi
+
+if ! command -v flutter &> /dev/null
+then
+ echo "flutter could not be found"
+ echo "Installing flutter..."
+ git clone https://github.com/flutter/flutter.git
+ export PATH="$PATH:`pwd`/flutter/bin"
+fi
+if [[ "$OSTYPE" == "linux-gnu"* ]]; then
+ if ! command -v google-chrome-stable &> /dev/null
+ then
+ echo "Google Chrome could not be found"
+ echo "Installing Google Chrome..."
+ wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
+ sudo dpkg -i google-chrome-stable_current_amd64.deb
+ fi
+elif [[ "$OSTYPE" == "darwin"* ]]; then
+ if ! command -v /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome &> /dev/null
+ then
+ echo "Google Chrome could not be found"
+ echo "Please install Google Chrome manually from https://www.google.com/chrome/"
+ fi
+elif [[ "$OSTYPE" == "cygwin" ]] || [[ "$OSTYPE" == "msys" ]] || [[ "$OSTYPE" == "win32" ]]; then
+ if ! command -v /c/Program\ Files\ \(x86\)/Google/Chrome/Application/chrome.exe &> /dev/null
+ then
+ echo "Google Chrome could not be found"
+ echo "Please install Google Chrome manually from https://www.google.com/chrome/"
+ fi
+else
+ echo "Unsupported OS. Please install Google Chrome manually from https://www.google.com/chrome/"
+fi
+
+echo "Installation has been completed."