| #!/usr/bin/env bash |
|
|
| |
| SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) |
| cd $SCRIPT_DIR |
|
|
| |
| if [ -d "SwarmUI" ]; then |
| echo "SwarmUI already exists in this directory. Please remove it before installing." |
| exit 1 |
| fi |
| if [ -f "SwarmUI.sln" ]; then |
| echo "SwarmUI already exists in this directory. Please remove it before installing." |
| exit 1 |
| fi |
|
|
| |
| git clone https://github.com/mcmonkeyprojects/SwarmUI |
|
|
| mkdir -p /workspace/SwarmUI/dlbackend |
|
|
| cd /workspace/SwarmUI/dlbackend |
|
|
| git clone https://github.com/comfyanonymous/ComfyUI |
|
|
| mkdir -p /workspace/SwarmUI/dlbackend/ComfyUI/custom_nodes |
|
|
| cd /workspace/SwarmUI/dlbackend/ComfyUI/custom_nodes |
|
|
| git clone https://github.com/ltdrdata/ComfyUI-Manager.git |
|
|
| cd /workspace/SwarmUI |
|
|
| |
| cd launchtools |
| rm dotnet-install.sh |
| |
| wget https://dot.net/v1/dotnet-install.sh -O dotnet-install.sh |
| chmod +x dotnet-install.sh |
|
|
| |
| ./dotnet-install.sh --channel 8.0 --runtime aspnetcore |
| ./dotnet-install.sh --channel 8.0 |
| cd .. |
|
|
| |
| |
|
|
|
|
| |
| ./launch-linux.sh --launch_mode none --host 0.0.0.0 |