Update menu.bat
Browse files
menu.bat
CHANGED
|
@@ -1,54 +1,53 @@
|
|
| 1 |
-
@echo off
|
| 2 |
-
setlocal
|
| 3 |
-
rem cd /d %~dp0
|
| 4 |
-
chcp 65001 > nul
|
| 5 |
-
set target_dir=%~dp0
|
| 6 |
-
set custom_n=%target_dir%ComfyUI\custom_nodes
|
| 7 |
-
set py=%target_dir%python_embeded\
|
| 8 |
-
set gi=%target_dir%git\bin\
|
| 9 |
-
set PATH=%target_dir%git\bin;%target_dir%git\libexec;%py%Scripts;%py%Library\bin;%PATH%;
|
| 10 |
-
|
| 11 |
-
call :ColorText "=============================================================" "Yellow"
|
| 12 |
-
call :ColorText ".bat file install custom_nodes for ComfyUI by Skiffbox" "Green"
|
| 13 |
-
call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
|
| 14 |
-
call :ColorText "=============================================================" "red"
|
| 15 |
-
|
| 16 |
-
call :check_and_clone https://github.com/ltdrdata/ComfyUI-Manager ComfyUI-Manager
|
| 17 |
-
call :check_and_clone https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
|
| 18 |
-
call :check_and_clone https://github.com/11cafe/comfyui-workspace-manager comfyui-workspace-manager
|
| 19 |
-
call :check_and_clone https://github.com/hayden-fr/ComfyUI-Model-Manager ComfyUI-Model-Manager
|
| 20 |
-
call :check_and_clone https://github.com/talesofai/comfyui-browser comfyui-browser
|
| 21 |
-
|
| 22 |
-
:end
|
| 23 |
-
call :ColorText "=============================================================" "Yellow"
|
| 24 |
-
call :ColorText "install custom_nodes for ComfyUI by Skiffbox .bat file" "Green"
|
| 25 |
-
call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
|
| 26 |
-
call :ColorText "=============================================================" "red"
|
| 27 |
-
call :ColorText "Завершение установки кастомных нод..." "magenta"
|
| 28 |
-
rem del /f /q %target_dir%menu.bat
|
| 29 |
-
endlocal
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
call :ColorText "
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
set
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
rem cd /d %~dp0
|
| 4 |
+
chcp 65001 > nul
|
| 5 |
+
set target_dir=%~dp0
|
| 6 |
+
set custom_n=%target_dir%ComfyUI\custom_nodes
|
| 7 |
+
set py=%target_dir%python_embeded\
|
| 8 |
+
set gi=%target_dir%git\bin\
|
| 9 |
+
set PATH=%target_dir%git\bin;%target_dir%git\libexec;%py%Scripts;%py%Library\bin;%PATH%;
|
| 10 |
+
|
| 11 |
+
call :ColorText "=============================================================" "Yellow"
|
| 12 |
+
call :ColorText ".bat file install custom_nodes for ComfyUI by Skiffbox" "Green"
|
| 13 |
+
call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
|
| 14 |
+
call :ColorText "=============================================================" "red"
|
| 15 |
+
|
| 16 |
+
call :check_and_clone https://github.com/ltdrdata/ComfyUI-Manager ComfyUI-Manager
|
| 17 |
+
call :check_and_clone https://github.com/crystian/ComfyUI-Crystools ComfyUI-Crystools
|
| 18 |
+
call :check_and_clone https://github.com/11cafe/comfyui-workspace-manager comfyui-workspace-manager
|
| 19 |
+
call :check_and_clone https://github.com/hayden-fr/ComfyUI-Model-Manager ComfyUI-Model-Manager
|
| 20 |
+
call :check_and_clone https://github.com/talesofai/comfyui-browser comfyui-browser
|
| 21 |
+
|
| 22 |
+
:end
|
| 23 |
+
call :ColorText "=============================================================" "Yellow"
|
| 24 |
+
call :ColorText "install custom_nodes for ComfyUI by Skiffbox .bat file" "Green"
|
| 25 |
+
call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
|
| 26 |
+
call :ColorText "=============================================================" "red"
|
| 27 |
+
call :ColorText "Завершение установки кастомных нод..." "magenta"
|
| 28 |
+
rem del /f /q %target_dir%menu.bat
|
| 29 |
+
endlocal
|
| 30 |
+
exit /b
|
| 31 |
+
|
| 32 |
+
:check_and_clone
|
| 33 |
+
if exist %custom_n%\%2 (
|
| 34 |
+
call :ColorText "%2 уже установлено, пропуск..." "yellow"
|
| 35 |
+
) else (
|
| 36 |
+
call :ColorText "=============================================================" "Yellow"
|
| 37 |
+
call :ColorText "Installing %2" "Green"
|
| 38 |
+
%gi%git clone %1 %custom_n%\%2
|
| 39 |
+
if exist %custom_n%\%2\requirements.txt (
|
| 40 |
+
%py%python -m pip install -r %custom_n%\%2\requirements.txt
|
| 41 |
+
call :ColorText "=============================================================" "red"
|
| 42 |
+
)
|
| 43 |
+
)
|
| 44 |
+
exit /b
|
| 45 |
+
|
| 46 |
+
:ColorText
|
| 47 |
+
setlocal
|
| 48 |
+
set text=%~1
|
| 49 |
+
set color=%~2
|
| 50 |
+
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
|
| 51 |
+
endlocal
|
| 52 |
+
exit /b
|
| 53 |
+
|
|
|