forked from liuw1535/antigravity2api-nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate.bat
More file actions
39 lines (35 loc) · 764 Bytes
/
update.bat
File metadata and controls
39 lines (35 loc) · 764 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
@echo off
echo ========================================
echo Antigravity2API Update Script
echo ========================================
echo.
echo [1/3] Stashing local changes...
git stash push -m "Auto stash before update"
if errorlevel 1 (
echo Failed to stash changes
pause
exit /b 1
)
echo.
echo [2/3] Pulling latest code...
git pull origin main
if errorlevel 1 (
echo Failed to pull updates
pause
exit /b 1
)
echo.
echo [3/3] Installing dependencies...
call npm install
echo.
echo ========================================
echo Update completed!
echo ========================================
echo.
echo To restore your local changes:
echo git stash pop
echo.
echo To discard your local changes:
echo git stash drop
echo.
pause