Spaces:
Paused
Paused
File size: 741 Bytes
5952dec |
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 |
@echo off
chcp 65001 >nul
REM 编码:UTF-8
echo start update process...
REM 还原特定的代理服务器文件
git checkout HEAD -- src/proxy/cursor_proxy_server_android_arm64 ^
src/proxy/cursor_proxy_server_linux_amd64 ^
src/proxy/cursor_proxy_server_windows_amd64.exe
if %ERRORLEVEL% neq 0 (
echo error:restore proxy server file failed
goto fail
)
REM 拉取远程更新,保留服务器端更改
git pull -X theirs
if %ERRORLEVEL% neq 0 (
echo error:pull update failed,maybe network problem or conflict
goto fail
)
echo update success
goto end
:fail
echo update failed,please check network connection or solve conflict
exit /b 1
:end
pause |