File size: 7,367 Bytes
f9be40c |
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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
@echo off
setlocal
cd /d %~dp0
set target_dir=%~dp0
chcp 65001 > nul
set custom_n=%target_dir%ComfyUI\custom_nodes
set py=%target_dir%python\
set PATH=%PATH%;%target_dir%git\git\bin;%target_dir%git\git\libexec;
call :ColorText "==============================================================" "Yellow"
call :ColorText ".bat file menu for installing custom_nodes by TetaZina" "Green"
call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
call :ColorText "==============================================================" "red"
:menu
echo ========================================
echo Выберите команду для выполнения:
echo 1. установить ComfyUI-Manager
echo 2. установить ComfyUI_IPAdapter_plus
echo 3. установить ComfyUI-Custom-Scripts
echo 4. установить ComfyUI-SUPIR
echo 5. установить comfyui-reactor-node
echo 6. установить ComfyUI-Easy-Use
echo 7. установить rgthree-comfy
echo 8. установить comfyui-workspace-manager
echo 9. установить ComfyUI-Crystools
echo a. установить ComfyUI-WD14-Tagger
echo b. установить ComfyUI-Impact-Pack
echo c. установить ComfyUI-Photopea
echo d. установить ComfyUI-CLIPSeg
echo e. установить comfyui_controlnet_aux
echo f. установить comfyui-inpaint-nodes
echo g. Установить все кастомные ноды
echo h. Пропустить установку кастомных нод
echo ========================================
choice /c 123456789ABCDEFGH /n /m "Введите ваш выбор: "
if errorlevel 17 goto skipall
if errorlevel 16 goto install_all
if errorlevel 15 goto command15
if errorlevel 14 goto command14
if errorlevel 13 goto command13
if errorlevel 12 goto command12
if errorlevel 11 goto command11
if errorlevel 10 goto command10
if errorlevel 9 goto command9
if errorlevel 8 goto command8
if errorlevel 7 goto command7
if errorlevel 6 goto command6
if errorlevel 5 goto command5
if errorlevel 4 goto command4
if errorlevel 3 goto command3
if errorlevel 2 goto command2
if errorlevel 1 goto command1
:check_and_clone
if exist %custom_n%\%2 (
call :ColorText "%2 уже установлено, пропуск..." "yellow"
) else (
%target_dir%git\git\bin\git clone %1 %custom_n%\%2
if exist %custom_n%\%2\requirements.txt (
%py%python -m pip install -r %custom_n%\%2\requirements.txt
)
)
goto menu
:command1
call :check_and_clone https://github.com/ltdrdata/ComfyUI-Manager ComfyUI-Manager
:command2
call :check_and_clone https://github.com/cubiq/ComfyUI_IPAdapter_plus ComfyUI_IPAdapter_plus
:command3
call :check_and_clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts ComfyUI-Custom-Scripts
:command4
call :check_and_clone https://github.com/kijai/ComfyUI-SUPIR ComfyUI-SUPIR
:command5
call :check_and_clone https://github.com/Gourieff/comfyui-reactor-node comfyui-reactor-node
:command6
call :check_and_clone https://github.com/yolain/ComfyUI-Easy-Use ComfyUI-Easy-Use
:command7
call :check_and_clone https://github.com/rgthree/rgthree-comfy rgthree-comfy
:command8
call :check_and_clone https://github.com/11cafe/comfyui-workspace-manager comfyui-workspace-manager
:command9
call :check_and_clone https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
:command10
call :check_and_clone https://github.com/pythongosssss/ComfyUI-WD14-Tagger ComfyUI-WD14-Tagger
:command11
call :check_and_clone https://github.com/ltdrdata/ComfyUI-Impact-Pack ComfyUI-Impact-Pack
:command12
call :check_and_clone https://github.com/coolzilj/ComfyUI-Photopea ComfyUI-Photopea
:command13
call :check_and_clone https://github.com/time-river/ComfyUI-CLIPSeg ComfyUI-CLIPSeg
:command14
call :check_and_clone https://github.com/Fannovel16/comfyui_controlnet_aux comfyui_controlnet_aux
:command15
call :check_and_clone https://github.com/Acly/comfyui-inpaint-nodes comfyui-inpaint-nodes
:install_all
%target_dir%git\git\bin\git clone https://github.com/ltdrdata/ComfyUI-Manager %custom_n%\ComfyUI-Manager
%py%python -m pip install -r %custom_n%\ComfyUI-Manager\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/cubiq/ComfyUI_IPAdapter_plus %custom_n%\ComfyUI_IPAdapter_plus
%target_dir%git\git\bin\git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts %custom_n%\ComfyUI-Custom-Scripts
%target_dir%git\git\bin\git clone https://github.com/kijai/ComfyUI-SUPIR %custom_n%\ComfyUI-SUPIR
%py%python -m pip install -r %custom_n%\ComfyUI-SUPIR\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/Gourieff/comfyui-reactor-node %custom_n%\comfyui-reactor-node
%py%python -m pip install -r %custom_n%\comfyui-reactor-node\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/yolain/ComfyUI-Easy-Use %custom_n%\ComfyUI-Easy-Use
%py%python -m pip install -r %custom_n%\ComfyUI-Easy-Use\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/rgthree/rgthree-comfy %custom_n%\rgthree-comfy
%py%python -m pip install -r %custom_n%\rgthree-comfy\requirements.txt
%target_dir%git\bin\git clone https://github.com/11cafe/comfyui-workspace-manager %custom_n%\comfyui-workspace-manager
%target_dir%git\git\bin\git clone https://github.com/crystian/ComfyUI-Crystools %custom_n%\ComfyUI-Crystools
%py%python -m pip install -r %custom_n%\ComfyUI-Crystools\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/pythongosssss/ComfyUI-WD14-Tagger %custom_n%\ComfyUI-WD14-Tagger
%py%python -m pip install -r %custom_n%\ComfyUI-WD14-Tagger\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/ltdrdata/ComfyUI-Impact-Pack %custom_n%\ComfyUI-Impact-Pack
%py%python -m pip install -r %custom_n%\ComfyUI-Impact-Pack\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/coolzilj/ComfyUI-Photopea %custom_n%\ComfyUI-Photopea
%target_dir%git\git\bin\git clone https://github.com/time-river/ComfyUI-CLIPSeg %custom_n%\ComfyUI-CLIPSeg
%py%python -m pip install -r %custom_n%\ComfyUI-CLIPSeg\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/Fannovel16/comfyui_controlnet_aux %custom_n%\comfyui_controlnet_aux
%py%python -m pip install -r %custom_n%\comfyui_controlnet_aux\requirements.txt
%target_dir%git\git\bin\git clone https://github.com/Acly/comfyui-inpaint-nodes %custom_n%\comfyui-inpaint-nodes
goto end
:skipall
echo Пропуск установки всех команд...
goto end
:end
call :ColorText "==============================================================" "Yellow"
call :ColorText ".bat file menu for installing custom_nodes by TetaZina" "Green"
call :ColorText "telegram @partiaComfynistov or https://t.me/partiaComfynistov" "blue"
call :ColorText "==============================================================" "red"
call :ColorText "Завершение установки кастомных нод..." "magenta"
del /f /q %target_dir%menu.bat
exit /b
:ColorText
setlocal
set text=%~1
set color=%~2
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
exit /b
pause |