iRedHat commited on
Commit
7908e9f
·
verified ·
1 Parent(s): cc4c54f

Update menu.bat

Browse files
Files changed (1) hide show
  1. menu.bat +53 -54
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
- 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
-
 
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
+