iRedHat commited on
Commit
eb195ee
·
verified ·
1 Parent(s): 815fdc9

Update Install-good-ComfyUI.bat

Browse files
Files changed (1) hide show
  1. Install-good-ComfyUI.bat +79 -79
Install-good-ComfyUI.bat CHANGED
@@ -1,80 +1,80 @@
1
- @echo off
2
- setlocal
3
- chcp 65001 > nul
4
- set target_dir=%~dp0
5
- set custom_n=%target_dir%ComfyUI\custom_nodes
6
- set py=%target_dir%python_embeded\
7
-
8
- call :ColorText "=============================================================" "Yellow"
9
- call :ColorText ".bat file for installing good-ComfyUI by Skiffbox" "Green"
10
-
11
- call :ColorText "=============================================================" "Yellow"
12
- echo Installing wget
13
- curl --ssl-no-revoke -L -o wget.exe https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/wget.exe
14
- call :ColorText "Install wget complete" "Green"
15
-
16
- call :ColorText "=============================================================" "Yellow"
17
- call :ColorText "Downloading and unzip python+git" "Green"
18
- cd %target_dir%
19
- %target_dir%wget.exe -c -q -O pygit.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/Git-Python_embeded.bat
20
- call %target_dir%Git-Python_embeded.bat
21
- del /f /q %target_dir%Git-Python_embeded.bat
22
-
23
- cd %target_dir%
24
- %target_dir%wget.exe -c -q -O install_modules.py https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/install_modules.py
25
- %py%python.exe install_modules.py
26
- del /f /q %target_dir%install_modules.py
27
- del /f /q %target_dir%insightface-0.7.3-cp311-cp311-win_amd64.whl
28
-
29
- %target_dir%wget.exe -c -q -O install_modules.py https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/all_nodes.py
30
- %py%python.exe all_nodes.py
31
- del /f /q %target_dir%all_nodes.py
32
-
33
- rem call :ColorText "=============================================================" "Yellow"
34
- rem call :ColorText "run menu.bat and install custom nodes" "Green"
35
- rem cd %target_dir%
36
- rem %target_dir%wget.exe -c -q -O min_nodes.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/min_nodes.bat
37
- rem call %target_dir%min_nodes.bat
38
- rem del /f /q %target_dir%min_nodes.bat
39
-
40
- call :ColorText "пауза run menu.bat and install custom nodes" "Green"
41
- pause
42
-
43
- call :ColorText "=============================================================" "Yellow"
44
- call :ColorText "Download update.bat file" "Green"
45
- %target_dir%wget.exe -c -q -O update.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update.bat
46
- %target_dir%wget.exe -c -q -O models_links.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/models_links.bat
47
- %target_dir%wget.exe -c -q -O rename_list.txt https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/rename_list.txt
48
- %target_dir%wget.exe -c -q -O update_git_pull.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update_git_pull.bat
49
- call %target_dir%update.bat
50
- rem call %target_dir%models_links.bat
51
-
52
- call :ColorText "=============================================================" "Yellow"
53
- call :ColorText "Building run.bat file" "Green"
54
- echo @echo off> run.bat
55
- echo setlocal>> run.bat
56
- echo chcp 65001 > nul>> run.bat
57
- echo set target_dir=%~dp0>> run.bat
58
- echo set PATH=%target_dir%git\bin;%target_dir%git\libexec\;%target_dir%python_embeded;%target_dir%python_embeded\Library\bin;%target_dir%python_embeded\Scripts>> run.bat
59
- echo set COMFYUI_PATH=%target_dir%ComfyUI>> run.bat
60
- echo set COMFYUI_MODEL_PATH=%target_dir%ComfyUI\models>> run.bat
61
- echo %target_dir%python_embeded\python %target_dir%ComfyUI\main.py --auto-launch --lowvram>> run.bat
62
- echo pause>> run.bat
63
-
64
- call :ColorText "=============================================================" "Yellow"
65
- call :ColorText "Starting ComfyUI - run.bat" "Green"
66
- start "" "%target_dir%run.bat"
67
-
68
- call :ColorText "=============================================================" "Yellow"
69
- call :ColorText "Installation of ComfyUI and Nodes complete by Skiffbox" "Green"
70
-
71
- pause
72
- exit /b
73
-
74
- :ColorText
75
- setlocal
76
- set text=%~1
77
- set color=%~2
78
- powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
79
- endlocal
80
  exit /b
 
1
+ @echo off
2
+ setlocal
3
+ chcp 65001 > nul
4
+ set target_dir=%~dp0
5
+ set custom_n=%target_dir%ComfyUI\custom_nodes
6
+ set py=%target_dir%python_embeded\
7
+
8
+ call :ColorText "=============================================================" "Yellow"
9
+ call :ColorText ".bat file for installing good-ComfyUI by Skiffbox" "Green"
10
+
11
+ call :ColorText "=============================================================" "Yellow"
12
+ echo Installing wget
13
+ curl --ssl-no-revoke -L -o wget.exe https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/wget.exe
14
+ call :ColorText "Install wget complete" "Green"
15
+
16
+ call :ColorText "=============================================================" "Yellow"
17
+ call :ColorText "Downloading and unzip python+git" "Green"
18
+ cd %target_dir%
19
+ %target_dir%wget.exe -c -q -O pygit.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/Git-Python_embeded.bat
20
+ call %target_dir%Git-Python_embeded.bat
21
+ del /f /q %target_dir%Git-Python_embeded.bat
22
+
23
+ cd %target_dir%
24
+ %target_dir%wget.exe -c -q -O install_modules.py https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/install_modules.py
25
+ %py%python.exe install_modules.py
26
+ del /f /q %target_dir%install_modules.py
27
+ del /f /q %target_dir%insightface-0.7.3-cp311-cp311-win_amd64.whl
28
+
29
+ %target_dir%wget.exe -c -q -O all_nodes.py https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/all_nodes.py
30
+ %py%python.exe all_nodes.py
31
+ del /f /q %target_dir%all_nodes.py
32
+
33
+ rem call :ColorText "=============================================================" "Yellow"
34
+ rem call :ColorText "run menu.bat and install custom nodes" "Green"
35
+ rem cd %target_dir%
36
+ rem %target_dir%wget.exe -c -q -O min_nodes.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/min_nodes.bat
37
+ rem call %target_dir%min_nodes.bat
38
+ rem del /f /q %target_dir%min_nodes.bat
39
+
40
+ call :ColorText "пауза run menu.bat and install custom nodes" "Green"
41
+ pause
42
+
43
+ call :ColorText "=============================================================" "Yellow"
44
+ call :ColorText "Download update.bat file" "Green"
45
+ %target_dir%wget.exe -c -q -O update.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update.bat
46
+ %target_dir%wget.exe -c -q -O models_links.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/models_links.bat
47
+ %target_dir%wget.exe -c -q -O rename_list.txt https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/rename_list.txt
48
+ %target_dir%wget.exe -c -q -O update_git_pull.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update_git_pull.bat
49
+ call %target_dir%update.bat
50
+ rem call %target_dir%models_links.bat
51
+
52
+ call :ColorText "=============================================================" "Yellow"
53
+ call :ColorText "Building run.bat file" "Green"
54
+ echo @echo off> run.bat
55
+ echo setlocal>> run.bat
56
+ echo chcp 65001 > nul>> run.bat
57
+ echo set target_dir=%~dp0>> run.bat
58
+ echo set PATH=%target_dir%git\bin;%target_dir%git\libexec\;%target_dir%python_embeded;%target_dir%python_embeded\Library\bin;%target_dir%python_embeded\Scripts>> run.bat
59
+ echo set COMFYUI_PATH=%target_dir%ComfyUI>> run.bat
60
+ echo set COMFYUI_MODEL_PATH=%target_dir%ComfyUI\models>> run.bat
61
+ echo %target_dir%python_embeded\python %target_dir%ComfyUI\main.py --auto-launch --lowvram>> run.bat
62
+ echo pause>> run.bat
63
+
64
+ call :ColorText "=============================================================" "Yellow"
65
+ call :ColorText "Starting ComfyUI - run.bat" "Green"
66
+ start "" "%target_dir%run.bat"
67
+
68
+ call :ColorText "=============================================================" "Yellow"
69
+ call :ColorText "Installation of ComfyUI and Nodes complete by Skiffbox" "Green"
70
+
71
+ pause
72
+ exit /b
73
+
74
+ :ColorText
75
+ setlocal
76
+ set text=%~1
77
+ set color=%~2
78
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
79
+ endlocal
80
  exit /b