mirror of
https://github.com/DSPBluePrints/FactoryBluePrints.git
synced 2026-02-05 02:02:19 +08:00
把TTenYX蓝图包更新到v4.6
This commit is contained in:
19
update.bat
19
update.bat
@@ -1,4 +1,3 @@
|
||||
chcp 65001
|
||||
@echo off
|
||||
cd %~dp0
|
||||
|
||||
@@ -11,7 +10,7 @@ echo ---->>%LOG_PATH%
|
||||
cd ..
|
||||
cd ..
|
||||
if not exist "Blueprint" (
|
||||
echo 警告:您似乎安装到了错误的路径,这可能导致文件权限异常
|
||||
echo 警告:您似乎安装到了错误的路径,这可能导致文件权限异常
|
||||
)
|
||||
cd %~dp0
|
||||
|
||||
@@ -27,14 +26,14 @@ echo %date% %time% Infomation: GIT_PATH=git>>%LOG_PATH%
|
||||
::test git.exe
|
||||
%GIT_PATH% -v
|
||||
if %errorlevel% NEQ 0 (
|
||||
echo 错误:无法找到git.exe
|
||||
echo 错误:无法找到git.exe
|
||||
echo %date% %time% Error: git.exe no found>>%LOG_PATH%
|
||||
goto end_with_error
|
||||
)
|
||||
|
||||
::find .git/
|
||||
if not exist ".git" (
|
||||
echo 错误:无法找到.git/
|
||||
echo 错误:无法找到.git/
|
||||
echo %date% %time% Error: .git/ no found>>%LOG_PATH%
|
||||
goto end_with_error
|
||||
)
|
||||
@@ -42,7 +41,7 @@ goto end_with_error
|
||||
::test .git/
|
||||
%GIT_PATH% rev-parse --path-format=absolute --git-dir
|
||||
if %errorlevel% NEQ 0 (
|
||||
echo 错误:.git/已损坏
|
||||
echo 错误:.git/已损坏
|
||||
echo %date% %time% Error: .git/ is broken>>%LOG_PATH%
|
||||
goto end_with_error
|
||||
)
|
||||
@@ -60,7 +59,7 @@ echo %date% %time% Infomation: %GIT_PATH% reset --hard>>%LOG_PATH%
|
||||
::update
|
||||
%GIT_PATH% pull origin main
|
||||
if %errorlevel% NEQ 0 (
|
||||
echo 错误:更新失败。如果没有其他警告,这通常是网络波动,重试就行,无效请使用加速器/挂梯子后再更新。
|
||||
echo 错误:更新失败。如果没有其他警告,这通常是网络波动,重试就行,无效请使用加速器/挂梯子后再更新。
|
||||
echo %date% %time% Error: %GIT_PATH% pull origin main>>%LOG_PATH%
|
||||
goto end_with_error
|
||||
) else (
|
||||
@@ -68,15 +67,15 @@ echo %date% %time% Infomation: %GIT_PATH% pull origin main>>%LOG_PATH%
|
||||
)
|
||||
|
||||
:end
|
||||
echo 蓝图文件更新完成,现在可以直接关闭此窗口
|
||||
echo 蓝图文件更新完成,现在可以直接关闭此窗口
|
||||
echo %date% %time% Infomation: Exit>>%LOG_PATH%
|
||||
pause
|
||||
exit
|
||||
|
||||
:end_with_error
|
||||
echo 更新因为出现错误而中止,蓝图文件没有发生任何变动
|
||||
echo 常见问题请阅读说明https://github.com/DSPBluePrints/FactoryBluePrints/blob/main/README.md
|
||||
echo 如果仍然存疑可以加qq群反馈:162065696。请附上此页面截图和update.log截图。
|
||||
echo 更新因为出现错误而中止,蓝图文件没有发生任何变动
|
||||
echo 常见问题请阅读说明https://github.com/DSPBluePrints/FactoryBluePrints/blob/main/README.md
|
||||
echo 如果仍然存疑可以加qq群反馈:162065696。请附上此页面截图和update.log截图。
|
||||
echo %date% %time% Infomation: Exit>>%LOG_PATH%
|
||||
pause
|
||||
exit
|
||||
Reference in New Issue
Block a user