iRedHat commited on
Commit
cc4c54f
·
verified ·
1 Parent(s): 63c4632

Update HomeMade.bat

Browse files
Files changed (1) hide show
  1. HomeMade.bat +94 -100
HomeMade.bat CHANGED
@@ -1,100 +1,94 @@
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
-
9
- call :ColorText "=============================================================" "Yellow"
10
- call :ColorText ".bat file for updating instaled ComfyUI and Nodes by Skiffbox" "Green"
11
- call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
12
- call :ColorText "=============================================================" "red"
13
-
14
- call :ColorText "=============================================================" "Yellow"
15
- echo installing wget
16
- curl --ssl-no-revoke -L -o wget.exe https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/wget.exe
17
- rem https://eternallybored.org/misc/wget/
18
- call :ColorText "done - install wget" "Green"
19
- call :ColorText "=============================================================" "red"
20
-
21
- echo ================================
22
- echo Downloading and unzip python+git
23
- %target_dir%wget.exe -c -q -O pygit.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/pygit.bat
24
- call %target_dir%pygit.bat
25
- rem del /f /q %target_dir%pygit.bat
26
-
27
- call :ColorText "=============================================================" "Yellow"
28
- call :ColorText "Downloading ComfyUI" "Green"
29
- %target_dir%wget.exe -c -q -O comfy.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/comfy.bat
30
- call %target_dir%comfy.bat
31
- rem del /f /q %target_dir%comfy.bat
32
- call :ColorText "=============================================================" "red"
33
-
34
- call :ColorText "=============================================================" "Yellow"
35
- call :ColorText "Installing ComfyUI packages" "Green"
36
- %target_dir%wget.exe -c -q -O packages.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/packages.bat
37
- call %target_dir%packages.bat
38
- rem del /f /q %target_dir%packages.bat
39
- call :ColorText "=============================================================" "red"
40
-
41
- call :ColorText "=============================================================" "Yellow"
42
- call :ColorText "Installing Fixes for ComfyUI" "Green"
43
- rem cd %target_dir%fix.bat
44
- %target_dir%wget.exe -c -q -O fix.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/fix.bat
45
- call %target_dir%fix.bat
46
- call :ColorText "=============================================================" "red"
47
-
48
- call :ColorText "=============================================================" "Yellow"
49
- call :ColorText "run menu.bat and install custom nodes" "Green"
50
- cd %target_dir%
51
- %target_dir%wget.exe -c -q -O menu.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/menu.bat
52
- call %target_dir%menu.bat
53
- call :ColorText "=============================================================" "red"
54
-
55
- rem echo ===========================
56
- rem echo Installing Fixes - 2
57
- rem echo ===========================
58
- rem call %target_dir%fix-2.bat
59
-
60
- call :ColorText "=============================================================" "Yellow"
61
- call :ColorText "Run update.bat file" "Green"
62
- %target_dir%wget.exe -c -q -O update.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update.bat
63
- rem cd %target_dir%update.bat
64
- call %target_dir%update.bat
65
- call :ColorText "=============================================================" "red"
66
-
67
- call :ColorText "=============================================================" "Yellow"
68
- call :ColorText "Building run.bat file" "Green"
69
- echo @echo off> run.bat
70
- echo setlocal>> run.bat
71
- echo chcp 65001 > nul>> run.bat
72
- echo set target_dir=%~dp0>> run.bat
73
- 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
74
- echo set COMFYUI_PATH=%target_dir%ComfyUI>> run.bat
75
- echo set COMFYUI_MODEL_PATH=%target_dir%ComfyUI\models>> run.bat
76
- echo %target_dir%python_embeded\python %target_dir%ComfyUI\main.py --auto-launch --lowvram>> run.bat
77
- echo pause>> run.bat
78
- call :ColorText "=============================================================" "red"
79
-
80
- call :ColorText "=============================================================" "Yellow"
81
- call :ColorText "Starting ComfyUI - run.bat" "Green"
82
- call :ColorText "=============================================================" "red"
83
- start "" "%target_dir%run.bat"
84
- rem del "%~f0"
85
-
86
- call :ColorText "=============================================================" "Yellow"
87
- call :ColorText "Installation of ComfyUI and Nodes complete by Skiffbox" "Green"
88
- call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
89
- call :ColorText "=============================================================" "red"
90
-
91
- pause
92
- exit /b
93
-
94
- :ColorText
95
- setlocal
96
- set text=%~1
97
- set color=%~2
98
- powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
99
- endlocal
100
- exit /b
 
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
+
9
+ call :ColorText "=============================================================" "Yellow"
10
+ call :ColorText ".bat file for updating instaled ComfyUI and Nodes by Skiffbox" "Green"
11
+ call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
12
+ call :ColorText "=============================================================" "red"
13
+
14
+ call :ColorText "=============================================================" "Yellow"
15
+ echo installing wget
16
+ curl --ssl-no-revoke -L -o wget.exe https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/wget.exe
17
+ rem https://eternallybored.org/misc/wget/
18
+ call :ColorText "done - install wget" "Green"
19
+ call :ColorText "=============================================================" "red"
20
+
21
+ echo Downloading and unzip python+git
22
+ %target_dir%wget.exe -c -q -O pygit.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/pygit.bat
23
+ call %target_dir%pygit.bat
24
+ rem del /f /q %target_dir%pygit.bat
25
+
26
+ call :ColorText "=============================================================" "Yellow"
27
+ call :ColorText "Downloading ComfyUI" "Green"
28
+ %target_dir%wget.exe -c -q -O comfy.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/comfy.bat
29
+ call %target_dir%comfy.bat
30
+ rem del /f /q %target_dir%comfy.bat
31
+ call :ColorText "=============================================================" "red"
32
+
33
+ call :ColorText "=============================================================" "Yellow"
34
+ call :ColorText "Installing ComfyUI packages" "Green"
35
+ %target_dir%wget.exe -c -q -O packages.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/packages.bat
36
+ call %target_dir%packages.bat
37
+ rem del /f /q %target_dir%packages.bat
38
+ call :ColorText "=============================================================" "red"
39
+
40
+ call :ColorText "=============================================================" "Yellow"
41
+ call :ColorText "Installing Fixes for ComfyUI" "Green"
42
+ rem cd %target_dir%fix.bat
43
+ %target_dir%wget.exe -c -q -O fix.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/fix.bat
44
+ call %target_dir%fix.bat
45
+ call :ColorText "=============================================================" "red"
46
+
47
+ call :ColorText "=============================================================" "Yellow"
48
+ call :ColorText "run menu.bat and install custom nodes" "Green"
49
+ cd %target_dir%
50
+ %target_dir%wget.exe -c -q -O menu.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/menu.bat
51
+ call %target_dir%menu.bat
52
+ call :ColorText "=============================================================" "red"
53
+
54
+ call :ColorText "=============================================================" "Yellow"
55
+ call :ColorText "Run update.bat file" "Green"
56
+ %target_dir%wget.exe -c -q -O update.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update.bat
57
+ rem cd %target_dir%update.bat
58
+ call %target_dir%update.bat
59
+ call :ColorText "=============================================================" "red"
60
+
61
+ call :ColorText "=============================================================" "Yellow"
62
+ call :ColorText "Building run.bat file" "Green"
63
+ echo @echo off> run.bat
64
+ echo setlocal>> run.bat
65
+ echo chcp 65001 > nul>> run.bat
66
+ echo set target_dir=%~dp0>> run.bat
67
+ 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
68
+ echo set COMFYUI_PATH=%target_dir%ComfyUI>> run.bat
69
+ echo set COMFYUI_MODEL_PATH=%target_dir%ComfyUI\models>> run.bat
70
+ echo %target_dir%python_embeded\python %target_dir%ComfyUI\main.py --auto-launch --lowvram>> run.bat
71
+ echo pause>> run.bat
72
+ call :ColorText "=============================================================" "red"
73
+
74
+ call :ColorText "=============================================================" "Yellow"
75
+ call :ColorText "Starting ComfyUI - run.bat" "Green"
76
+ call :ColorText "=============================================================" "red"
77
+ start "" "%target_dir%run.bat"
78
+ rem del "%~f0"
79
+
80
+ call :ColorText "=============================================================" "Yellow"
81
+ call :ColorText "Installation of ComfyUI and Nodes complete by Skiffbox" "Green"
82
+ call :ColorText "telegram @Skiffbox or https://t.me/Skiffbox" "blue"
83
+ call :ColorText "=============================================================" "red"
84
+
85
+ pause
86
+ exit /b
87
+
88
+ :ColorText
89
+ setlocal
90
+ set text=%~1
91
+ set color=%~2
92
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
93
+ endlocal
94
+ exit /b