git / menu.bat
happyneishon's picture
Upload 3 files
f9be40c verified
raw
history blame
No virus
7.37 kB
@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