forked from hwahao/CoreOfPotato
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·35 lines (28 loc) · 943 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·35 lines (28 loc) · 943 Bytes
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
34
35
#!/usr/bin/env bash
set -e
echo "Setting up Core of Potato v1.0.0..."
# Check if python3 is installed
if ! command -v python3 &> /dev/null; then
echo "Python 3 is required but not found. Please install Python 3.9+."
exit 1
fi
# Optional: set up a virtual environment if not already in one
if [ -z "$VIRTUAL_ENV" ]; then
echo "Creating virtual environment..."
python3 -m venv venv
source venv/bin/activate
fi
echo "Installing requirements..."
pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
echo "Installing Playwright browsers..."
playwright install chromium
if [ ! -f "config.json" ]; then
echo "Copying config.example.json to config.json..."
cp config.example.json config.json
echo "Please update config.json with your specific configuration."
else
echo "config.json already exists. Skipping copy."
fi
echo "Setup complete! You can now run CoreNexus."