mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-04-09 03:33:30 +08:00
Opt: added better pip support to CN users
This commit is contained in:
10
alas.bat
10
alas.bat
@@ -71,7 +71,7 @@ cd "%root%"
|
|||||||
cls
|
cls
|
||||||
echo =======================================================================================================================
|
echo =======================================================================================================================
|
||||||
:: Uncomment to debug the configuration that imported from "config\deploy.ini"
|
:: Uncomment to debug the configuration that imported from "config\deploy.ini"
|
||||||
rem echo == ^| Language: %Language% & echo Region: %Region% & echo SystemType: %SystemType%
|
echo == ^| Language: %Language% & echo == ^| Region: %Region% & echo == ^| SystemType: %SystemType%
|
||||||
rem echo == ^| http_proxy: %http_proxy% & echo https_proxy: %https_proxy%
|
rem echo == ^| http_proxy: %http_proxy% & echo https_proxy: %https_proxy%
|
||||||
echo == ^| DeployMode: %DeployMode%
|
echo == ^| DeployMode: %DeployMode%
|
||||||
echo == ^| KeepLocalChanges: %KeepLocalChanges%
|
echo == ^| KeepLocalChanges: %KeepLocalChanges%
|
||||||
@@ -249,8 +249,9 @@ if /i "%opt6_opt4_choice%"=="T" (
|
|||||||
goto ReturnToMenu
|
goto ReturnToMenu
|
||||||
)
|
)
|
||||||
:proceed_alas
|
:proceed_alas
|
||||||
|
if "%Region%"=="cn" set "pip_option=--index-url=https://pypi.tuna.tsinghua.edu.cn/simple"
|
||||||
echo == ^| Updating requirements.txt
|
echo == ^| Updating requirements.txt
|
||||||
CALL pip install numpy==1.16.6 scipy==1.4.1 pillow opencv-python scikit-image==0.16.2 lz4 tqdm requests==2.18.4 uiautomator2==2.9.2 retrying mxnet==1.6.0 cnocr==1.2.2 gooey colored win10toast-persist jellyfish
|
call pip install -r requirements.txt %pip_option% --no-warn-script-location > toolkit\Log\pip_update_log_%datetime%.log
|
||||||
echo == ^| requirements.txt updated!
|
echo == ^| requirements.txt updated!
|
||||||
if "%KeepLocalChanges%"=="disable" (
|
if "%KeepLocalChanges%"=="disable" (
|
||||||
echo == ^| GIT Found in %gitBin% Proceeding
|
echo == ^| GIT Found in %gitBin% Proceeding
|
||||||
@@ -262,9 +263,11 @@ if "%KeepLocalChanges%"=="disable" (
|
|||||||
if "%AutoMode%"=="enable" (
|
if "%AutoMode%"=="enable" (
|
||||||
echo. & echo == ^| Press any key to proceed to %DefaultServer%
|
echo. & echo == ^| Press any key to proceed to %DefaultServer%
|
||||||
goto %DefaultServer% )
|
goto %DefaultServer% )
|
||||||
|
else (
|
||||||
echo == ^| Press any key to proceed
|
echo == ^| Press any key to proceed
|
||||||
pause > NUL
|
pause > NUL
|
||||||
goto Updater_menu
|
goto Updater_menu
|
||||||
|
)
|
||||||
) else (
|
) else (
|
||||||
echo == ^| GIT Found in %gitBin% Proceeding
|
echo == ^| GIT Found in %gitBin% Proceeding
|
||||||
echo == ^| Updating from %source% repository..
|
echo == ^| Updating from %source% repository..
|
||||||
@@ -285,6 +288,7 @@ echo. & echo == ^| Please re-run this batch to make the settings take effect.
|
|||||||
echo == ^| Please re-run the "alas.bat" to make the settings take effect.
|
echo == ^| Please re-run the "alas.bat" to make the settings take effect.
|
||||||
goto PleaseRerun
|
goto PleaseRerun
|
||||||
|
|
||||||
|
|
||||||
:update_toolkit
|
:update_toolkit
|
||||||
echo == is not done yet
|
echo == is not done yet
|
||||||
pause > NUL
|
pause > NUL
|
||||||
@@ -666,7 +670,7 @@ echo ===========================================================================
|
|||||||
set opt55_choice=-1
|
set opt55_choice=-1
|
||||||
set /p opt55_choice= Please input the index number of option and press ENTER:
|
set /p opt55_choice= Please input the index number of option and press ENTER:
|
||||||
echo. & echo.
|
echo. & echo.
|
||||||
if "%opt55_choice%"=="1" call :Serial_setting
|
if "%opt55_choice%"=="1" goto Serial_setting
|
||||||
if "%opt55_choice%"=="2" goto Settings_NoxSerial
|
if "%opt55_choice%"=="2" goto Settings_NoxSerial
|
||||||
if "%opt55_choice%"=="3" goto Realtime_mode
|
if "%opt55_choice%"=="3" goto Realtime_mode
|
||||||
if "%opt55_choice%"=="4" goto Settings_MemuSerial
|
if "%opt55_choice%"=="4" goto Settings_MemuSerial
|
||||||
|
|||||||
Reference in New Issue
Block a user