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

Upload HomeMade.bat

Browse files
Files changed (1) hide show
  1. HomeMade.bat +100 -0
HomeMade.bat ADDED
@@ -0,0 +1,100 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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