iRedHat commited on
Commit
3c13fe9
·
verified ·
1 Parent(s): 38394ec

Upload menu.bat

Browse files
Files changed (1) hide show
  1. menu.bat +54 -0
menu.bat ADDED
@@ -0,0 +1,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
+ pause
31
+ exit /b
32
+
33
+ :check_and_clone
34
+ if exist %custom_n%\%2 (
35
+ call :ColorText "%2 уже установлено, пропуск..." "yellow"
36
+ ) else (
37
+ call :ColorText "=============================================================" "Yellow"
38
+ call :ColorText "Installing %2" "Green"
39
+ %gi%git clone %1 %custom_n%\%2
40
+ if exist %custom_n%\%2\requirements.txt (
41
+ %py%python -m pip install -r %custom_n%\%2\requirements.txt
42
+ call :ColorText "=============================================================" "red"
43
+ )
44
+ )
45
+ exit /b
46
+
47
+ :ColorText
48
+ setlocal
49
+ set text=%~1
50
+ set color=%~2
51
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
52
+ endlocal
53
+ exit /b
54
+