File size: 968 Bytes
fd345d2 | 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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | #!/bin/bash
set -e
# --- Initialize or update ComfyUI repo ---
if [ -d "ComfyUI" ]; then
cd ComfyUI
git pull
else
git clone https://github.com/comfyanonymous/ComfyUI.git
cd ComfyUI
fi
# --- Python virtual environment ---
if [ ! -d "venv" ]; then
python3 -m venv venv
fi
source venv/bin/activate
# --- Core requirements for ComfyUI ---
pip install --upgrade pip
pip install -r requirements.txt
# --- Install/Update ComfyUI Manager ---
cd custom_nodes
if [ ! -d "ComfyUI-Manager" ]; then
git clone https://github.com/ltdrdata/ComfyUI-Manager.git
fi
cd ComfyUI-Manager
git pull
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
cd ../
# --- Install/Update ComfyUI-GGUF (GGUF support) ---
if [ ! -d "ComfyUI-GGUF" ]; then
git clone https://github.com/city96/ComfyUI-GGUF
fi
cd ComfyUI-GGUF
git pull
if [ -f requirements.txt ]; then
pip install -r requirements.txt
fi
cd ..
pip install --upgrade gguf
cd ../
echo "Setup complete."
|