-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathUPDATE.bat
More file actions
50 lines (41 loc) · 955 Bytes
/
UPDATE.bat
File metadata and controls
50 lines (41 loc) · 955 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
@echo off
echo ==========================================
echo ComfyUI Model Linker - Update Script
echo ==========================================
echo.
cd /d "%~dp0"
echo Current directory: %CD%
echo.
echo Checking for updates from GitHub...
echo.
git fetch origin
if errorlevel 1 (
echo.
echo [ERROR] Failed to fetch from GitHub!
echo Check your internet connection.
pause
exit /b 1
)
echo.
echo Pulling latest changes...
echo.
git pull origin main
if errorlevel 1 (
echo.
echo [ERROR] Failed to pull changes!
echo You may have local modifications.
echo.
echo To force update (WARNING: loses local changes):
echo git reset --hard origin/main
pause
exit /b 1
)
echo.
echo ==========================================
echo Update Complete! ✓
echo ==========================================
echo.
echo Changes applied successfully.
echo Restart ComfyUI Desktop to load updates.
echo.
pause