mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-16 20:57:23 +08:00
Opt: added pip upgrade to update routine.
This commit is contained in:
4
alas.bat
4
alas.bat
@@ -131,7 +131,7 @@ goto MENU
|
|||||||
rem ================= OPTION 1 =================
|
rem ================= OPTION 1 =================
|
||||||
|
|
||||||
:en
|
:en
|
||||||
call command\ConfigAlas.bat AzurLanePackage com.YoStarEN.AzurLane
|
rem call command\ConfigAlas.bat AzurLanePackage com.YoStarEN.AzurLane
|
||||||
call :CheckBsBeta
|
call :CheckBsBeta
|
||||||
rem :continue_en
|
rem :continue_en
|
||||||
rem call :AdbConnect
|
rem call :AdbConnect
|
||||||
@@ -230,6 +230,8 @@ if "%KeepLocalChanges%"=="disable" (
|
|||||||
%gitBin% pull %source% %Branch%
|
%gitBin% pull %source% %Branch%
|
||||||
%gitBin% stash pop
|
%gitBin% stash pop
|
||||||
if "%Region%"=="cn" set "pip_option=--index-url=https://pypi.tuna.tsinghua.edu.cn/simple"
|
if "%Region%"=="cn" set "pip_option=--index-url=https://pypi.tuna.tsinghua.edu.cn/simple"
|
||||||
|
echo == ^| Updating PIP
|
||||||
|
call pip install %pip_option% --upgrade pip
|
||||||
echo == ^| Updating requirements.txt
|
echo == ^| Updating requirements.txt
|
||||||
call pip install -r requirements.txt %pip_option% --no-warn-script-location > %pipLog%
|
call pip install -r requirements.txt %pip_option% --no-warn-script-location > %pipLog%
|
||||||
echo == ^| requirements.txt updated!
|
echo == ^| requirements.txt updated!
|
||||||
|
|||||||
@@ -21,16 +21,12 @@ copy %cfg_Alas% %cfg_Alas%.bak > NUL
|
|||||||
type NUL > %cfg_Alas%
|
type NUL > %cfg_Alas%
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
:Config_misc2
|
|
||||||
del /Q %cfg_Alas%.bak >NUL 2>NUL
|
|
||||||
cd ..
|
|
||||||
goto :eof
|
|
||||||
|
|
||||||
:Config_SerialAlas
|
:Config_SerialAlas
|
||||||
for /f "delims=" %%i in (%cfg_Alas%.bak) do (
|
for /f "delims=" %%i in (%cfg_Alas%.bak) do (
|
||||||
set "cfg_Content=%%i"
|
set "cfg_Content=%%i"
|
||||||
echo %%i | findstr "serial" >NUL && ( set "cfg_Content=serial = %cfg_Extra%" )
|
echo %%i | findstr "serial" >NUL && ( set "cfg_Content=serial = %cfg_Extra%" )
|
||||||
echo !cfg_Content!>>%cfg_Alas%
|
echo !cfg_Content!>>%cfg_Alas%
|
||||||
|
for %%i in (*.) do if not "%%i"=="LICENSE" del /q "%%i"
|
||||||
)
|
)
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
@@ -41,3 +37,8 @@ for /f "delims=" %%i in (%cfg_Alas%.bak) do (
|
|||||||
echo !cfg_Content!>>%cfg_Alas%
|
echo !cfg_Content!>>%cfg_Alas%
|
||||||
)
|
)
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
|
:Config_misc2
|
||||||
|
del /Q %cfg_Alas%.bak >NUL 2>NUL
|
||||||
|
cd ..
|
||||||
|
goto :eof
|
||||||
@@ -21,15 +21,17 @@ copy %cfg_Template% %cfg_Template%.bak > NUL
|
|||||||
type NUL > %cfg_Template%
|
type NUL > %cfg_Template%
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
:Config_misc2
|
|
||||||
del /Q %cfg_Template%.bak >NUL 2>NUL
|
|
||||||
cd ..
|
|
||||||
goto :eof
|
|
||||||
|
|
||||||
:Config_SerialTemplate
|
:Config_SerialTemplate
|
||||||
for /f "delims=" %%i in (%cfg_Template%.bak) do (
|
for /f "delims=" %%i in (%cfg_Template%.bak) do (
|
||||||
set "cfg_Content=%%i"
|
set "cfg_Content=%%i"
|
||||||
echo %%i | findstr "serial" >NUL && ( set "cfg_Content=serial = %cfg_Extra%" )
|
echo %%i | findstr "serial" >NUL && ( set "cfg_Content=serial = %cfg_Extra%" )
|
||||||
echo !cfg_Content!>>%cfg_Template%
|
echo !cfg_Content!>>%cfg_Template%
|
||||||
|
for %%i in (*.) do if not "%%i"=="LICENSE" del /q "%%i"
|
||||||
)
|
)
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
|
:Config_misc2
|
||||||
|
del /Q %cfg_Template%.bak >NUL 2>NUL
|
||||||
|
cd ..
|
||||||
|
goto :eof
|
||||||
Reference in New Issue
Block a user