Upload 2 files
Browse files- Git-Python_embeded.bat +48 -0
- Install-good-ComfyUI.bat +80 -0
Git-Python_embeded.bat
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
chcp 65001 > nul
|
| 4 |
+
set target_dir=%~dp0
|
| 5 |
+
|
| 6 |
+
call :ColorText "=============================================================" "Yellow"
|
| 7 |
+
call :ColorText ".bat file for installing git/python for ComfyUI by Skiffbox" "Green"
|
| 8 |
+
|
| 9 |
+
call :ColorText "=============================================================" "Yellow"
|
| 10 |
+
%target_dir%wget.exe -c -q -O git.zip https://huggingface.co/iRedHat/iBat-ComfyUI/resolve/main/git.zip
|
| 11 |
+
rem https://github.com/git-for-windows/git-for-windows.github.io
|
| 12 |
+
call :ColorText "Download git.zip" "Green"
|
| 13 |
+
set "zipfile=%target_dir%git.zip"
|
| 14 |
+
set "dest=%target_dir%git"
|
| 15 |
+
echo UnZip git.zip
|
| 16 |
+
powershell -command "Expand-Archive -Path '%zipfile%' -DestinationPath '%dest%'"
|
| 17 |
+
del /f /q "%target_dir%git.zip"
|
| 18 |
+
call :ColorText "Install git complete" "Green"
|
| 19 |
+
|
| 20 |
+
cd %target_dir%
|
| 21 |
+
%target_dir%wget.exe -c -q -O python_embeded.zip https://www.python.org/ftp/python/3.11.9/python-3.11.9-embed-amd64.zip
|
| 22 |
+
call :ColorText "Download python_embeded.zip" "Green"
|
| 23 |
+
set "zipfile1=%target_dir%python_embeded.zip"
|
| 24 |
+
set "dest1=%target_dir%python_embeded"
|
| 25 |
+
echo UnZip python_embeded.zip
|
| 26 |
+
powershell -command "Expand-Archive -Path '%zipfile1%' -DestinationPath '%dest1%'"
|
| 27 |
+
del /f /q "%target_dir%python_embeded.zip"
|
| 28 |
+
mv %py%python311._pth %py%python311.pth
|
| 29 |
+
echo import site>> %py%python311.pth
|
| 30 |
+
mkdir %py%DLLs
|
| 31 |
+
|
| 32 |
+
%target_dir%wget.exe -c -q -O get-pip.py https://bootstrap.pypa.io/get-pip.py
|
| 33 |
+
%py%python.exe get-pip.py
|
| 34 |
+
del /f /q "%target_dir%get-pip.py"
|
| 35 |
+
%py%python.exe -m pip install virtualenv
|
| 36 |
+
rem %py%python.exe -m virtualenv %py%testenv
|
| 37 |
+
rem cp %py%python311.zip %py%testenv\Scripts\
|
| 38 |
+
rem %py%testenv\Scripts\Activate.ps1
|
| 39 |
+
|
| 40 |
+
endlocal
|
| 41 |
+
exit /b
|
| 42 |
+
|
| 43 |
+
:ColorText
|
| 44 |
+
setlocal
|
| 45 |
+
set text=%~1
|
| 46 |
+
set color=%~2
|
| 47 |
+
powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
|
| 48 |
+
exit /b
|
Install-good-ComfyUI.bat
ADDED
|
@@ -0,0 +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/pygit.bat
|
| 20 |
+
call %target_dir%pygit.bat
|
| 21 |
+
del /f /q %target_dir%pygit.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 install_modules.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
|