iRedHat commited on
Commit
bcc6b4d
·
verified ·
1 Parent(s): ba1d8c7

Upload update.bat

Browse files
Files changed (1) hide show
  1. update.bat +26 -0
update.bat ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ set gi=%target_dir%git\bin\
8
+ set PATH=%target_dir%git\bin;%target_dir%git\libexec;%py%Scripts;%py%Library\bin;%PATH%;
9
+
10
+ call :ColorText "=============================================================" "Yellow"
11
+ call :ColorText ".bat file for updating instaled ComfyUI and Nodes by Skiffbox" "Green"
12
+
13
+ cd %custom_n% && %gi%git pull
14
+ %py%python.exe -s -m pip install -r %target_dir%ComfyUI/requirements.txt
15
+ rem %py%python.exe -s -m pip install --upgrade torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/cu121 -r %target_dir%ComfyUI/requirements.txt pygit2
16
+ cd %target_dir%
17
+ endlocal
18
+ exit /b
19
+
20
+ :ColorText
21
+ setlocal
22
+ set text=%~1
23
+ set color=%~2
24
+ powershell -NoProfile -ExecutionPolicy Bypass -Command "Write-Host '%text%' -ForegroundColor %color%"
25
+ endlocal
26
+ exit /b