Update Install-good-ComfyUI.bat
Browse files- Install-good-ComfyUI.bat +69 -69
Install-good-ComfyUI.bat
CHANGED
|
@@ -1,70 +1,70 @@
|
|
| 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 Git-Python_embeded.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 |
-
call :ColorText "=============================================================" "Yellow"
|
| 34 |
-
call :ColorText "Download update.bat file" "Green"
|
| 35 |
-
%target_dir%wget.exe -c -q -O update.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update.bat
|
| 36 |
-
%target_dir%wget.exe -c -q -O models_links.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/models_links.bat
|
| 37 |
-
%target_dir%wget.exe -c -q -O rename_list.txt https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/rename_list.txt
|
| 38 |
-
%target_dir%wget.exe -c -q -O update_git_pull.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update_git_pull.bat
|
| 39 |
-
call %target_dir%update.bat
|
| 40 |
-
rem call %target_dir%models_links.bat
|
| 41 |
-
|
| 42 |
-
call :ColorText "=============================================================" "Yellow"
|
| 43 |
-
call :ColorText "Building run.bat file" "Green"
|
| 44 |
-
echo @echo off> run.bat
|
| 45 |
-
echo setlocal>> run.bat
|
| 46 |
-
echo chcp 65001 > nul>> run.bat
|
| 47 |
-
echo set target_dir=%~dp0>> run.bat
|
| 48 |
-
echo set PATH=%target_dir%git;%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
|
| 49 |
-
echo set COMFYUI_PATH=%target_dir%ComfyUI>> run.bat
|
| 50 |
-
echo set COMFYUI_MODEL_PATH=%target_dir%ComfyUI\models>> run.bat
|
| 51 |
-
echo %target_dir%python_embeded\python %target_dir%ComfyUI\main.py --auto-launch --lowvram>> run.bat
|
| 52 |
-
echo pause>> run.bat
|
| 53 |
-
|
| 54 |
-
call :ColorText "=============================================================" "Yellow"
|
| 55 |
-
call :ColorText "Starting ComfyUI - run.bat" "Green"
|
| 56 |
-
start "" "%target_dir%run.bat"
|
| 57 |
-
|
| 58 |
-
call :ColorText "=============================================================" "Yellow"
|
| 59 |
-
call :ColorText "Installation of ComfyUI and Nodes complete by Skiffbox" "Green"
|
| 60 |
-
|
| 61 |
-
pause
|
| 62 |
-
exit /b
|
| 63 |
-
|
| 64 |
-
:ColorText
|
| 65 |
-
setlocal
|
| 66 |
-
set text=%~1
|
| 67 |
-
set color=%~2
|
| 68 |
-
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
|
| 69 |
-
endlocal
|
| 70 |
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 Git-Python_embeded.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-good.py
|
| 30 |
+
%py%python.exe all_nodes.py
|
| 31 |
+
del /f /q %target_dir%all_nodes.py
|
| 32 |
+
|
| 33 |
+
call :ColorText "=============================================================" "Yellow"
|
| 34 |
+
call :ColorText "Download update.bat file" "Green"
|
| 35 |
+
%target_dir%wget.exe -c -q -O update.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update.bat
|
| 36 |
+
%target_dir%wget.exe -c -q -O models_links.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/models_links.bat
|
| 37 |
+
%target_dir%wget.exe -c -q -O rename_list.txt https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/rename_list.txt
|
| 38 |
+
%target_dir%wget.exe -c -q -O update_git_pull.bat https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/update_git_pull.bat
|
| 39 |
+
call %target_dir%update.bat
|
| 40 |
+
rem call %target_dir%models_links.bat
|
| 41 |
+
|
| 42 |
+
call :ColorText "=============================================================" "Yellow"
|
| 43 |
+
call :ColorText "Building run.bat file" "Green"
|
| 44 |
+
echo @echo off> run.bat
|
| 45 |
+
echo setlocal>> run.bat
|
| 46 |
+
echo chcp 65001 > nul>> run.bat
|
| 47 |
+
echo set target_dir=%~dp0>> run.bat
|
| 48 |
+
echo set PATH=%target_dir%git;%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
|
| 49 |
+
echo set COMFYUI_PATH=%target_dir%ComfyUI>> run.bat
|
| 50 |
+
echo set COMFYUI_MODEL_PATH=%target_dir%ComfyUI\models>> run.bat
|
| 51 |
+
echo %target_dir%python_embeded\python %target_dir%ComfyUI\main.py --auto-launch --lowvram>> run.bat
|
| 52 |
+
echo pause>> run.bat
|
| 53 |
+
|
| 54 |
+
call :ColorText "=============================================================" "Yellow"
|
| 55 |
+
call :ColorText "Starting ComfyUI - run.bat" "Green"
|
| 56 |
+
start "" "%target_dir%run.bat"
|
| 57 |
+
|
| 58 |
+
call :ColorText "=============================================================" "Yellow"
|
| 59 |
+
call :ColorText "Installation of ComfyUI and Nodes complete by Skiffbox" "Green"
|
| 60 |
+
|
| 61 |
+
pause
|
| 62 |
+
exit /b
|
| 63 |
+
|
| 64 |
+
:ColorText
|
| 65 |
+
setlocal
|
| 66 |
+
set text=%~1
|
| 67 |
+
set color=%~2
|
| 68 |
+
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
|
| 69 |
+
endlocal
|
| 70 |
exit /b
|