Files
zeekay b6bb2998e2 fix: remove spaces from paths and URLs in rebrand
Replace "Hanzo Studio" with "HanzoStudio" in file paths, git URLs,
Docker paths, and shell commands where spaces cause failures.
2026-02-23 15:05:37 -08:00

33 lines
927 B
Bash

#!/bin/bash
set -e
source /opt/environments/python/comfyui/bin/activate
echo "=========================="
echo "=== Pinning Dependencies ==="
echo "=========================="
pip install "numpy<2"
echo "==========================================="
echo "=== Downloading the custom node archive ==="
echo "==========================================="
cd /opt/HanzoStudio/custom_nodes/
rm -rf "$CUSTOM_NODE_NAME"
mkdir -p "$CUSTOM_NODE_NAME"
wget -O "$CUSTOM_NODE_NAME.zip" "$CUSTOM_NODE_URL"
echo "=================================="
echo "=== Installing the custom node ==="
echo "=================================="
unzip "${CUSTOM_NODE_NAME}.zip" -d "$CUSTOM_NODE_NAME"
cd "$CUSTOM_NODE_NAME"
if [ -f "requirements.txt" ]; then
echo "=== installing dependencies from requirements.txt"
pip install -r requirements.txt
fi
if [ -f "install.py" ]; then
echo "=== executing install.py"
python install.py
fi