-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall
executable file
·33 lines (31 loc) · 1013 Bytes
/
install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
kernelName="$(uname -s)"
if [ "$kernelName" == "Darwin" ]; then
# Check if Homebrew is installed
if command -v brew >/dev/null 2>&1; then
echo "Homebrew is installed. Continuing with installation."
brew install [email protected]
python3.11 -m venv venv
source venv/bin/activate
python install.py
else
echo "Error: Homebrew is not installed. Please install Homebrew and rerun this script."
exit 1
fi
elif [ "$kernelName" == "Linux" ]; then
sudo apt-get install python3.11
python3.11 -m venv venv
source venv/bin/activate
python install.py
elif [[ "$kernelName" == CYGWIN* ]] || [[ "$kernelName" == MINGW32* ]] || [[ "$kernelName" == MSYS* ]] || [[ "$kernelName" == MINGW* ]]; then
echo "Windows OS detected"
python -m venv venv
source venv/Scripts/activate
python install.py
echo "finished windows install"
exit 0
else
# Error
echo "Unknown operating system: $kernelName"
exit 1
fi