assile commited on
Commit
1fa1afa
·
verified ·
1 Parent(s): 721867b

Delete runMacOS.sh

Browse files
Files changed (1) hide show
  1. runMacOS.sh +0 -48
runMacOS.sh DELETED
@@ -1,48 +0,0 @@
1
- #!/bin/bash
2
-
3
- # Check if we are in the correct repository directory
4
- if [ ! -f "run.py" ]; then
5
- echo "run.py not found!"
6
- exit 1
7
- fi
8
-
9
- # Create a hidden Python 3.11 virtual environment in the .venv folder
10
- VENV_DIR=".venv"
11
-
12
- # Check if Python 3.11 is installed
13
- if ! brew list --versions [email protected] >/dev/null; then
14
- echo "Python 3.11 is not installed. Please install it first."
15
- exit 1
16
- fi
17
-
18
- # Use Python 3.11 to create the virtual environment
19
- echo "Creating a virtual environment using Python 3.11..."
20
- python3.11 -m venv $VENV_DIR
21
-
22
- # Activate the virtual environment
23
- echo "Activating the virtual environment..."
24
- source "$VENV_DIR/bin/activate"
25
-
26
- # Check if the activation was successful
27
- if [ "$VIRTUAL_ENV" != "" ]; then
28
- echo "Virtual environment activated successfully."
29
- else
30
- echo "Failed to activate the virtual environment."
31
- exit 1
32
- fi
33
-
34
- # Install dependencies from requirements.txt
35
- if [ -f "requirements.txt" ]; then
36
- echo "Installing dependencies from requirements.txt..."
37
- pip install -r requirements.txt
38
- else
39
- echo "requirements.txt not found. Skipping dependency installation."
40
- fi
41
-
42
- # Run roop-unleashed. This can take a while - especially at first startup...
43
- echo "Running the run.py script..."
44
- python run.py
45
-
46
- # Deactivate the virtual environment after execution
47
- echo "Deactivating the virtual environment..."
48
- deactivate