Update HomeMade.bat
Browse files- 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 |
-
|
| 23 |
-
%target_dir%
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
call :ColorText "
|
| 28 |
-
|
| 29 |
-
%target_dir%
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
call :ColorText "
|
| 35 |
-
|
| 36 |
-
%target_dir%
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
call :ColorText "
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
%target_dir%
|
| 45 |
-
call
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
call :ColorText "
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
%target_dir%
|
| 52 |
-
call
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
rem
|
| 58 |
-
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
call :ColorText "
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
|
| 68 |
-
|
| 69 |
-
echo
|
| 70 |
-
echo
|
| 71 |
-
echo
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
call :ColorText "=============================================================" "Yellow"
|
| 81 |
-
call :ColorText "
|
| 82 |
-
call :ColorText "
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
| 88 |
-
|
| 89 |
-
|
| 90 |
-
|
| 91 |
-
|
| 92 |
-
|
| 93 |
-
|
| 94 |
-
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|