mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-17 01:45:25 +08:00
Opt: using remote requirements.txt instead to local to updade
This commit is contained in:
5
alas.bat
5
alas.bat
@@ -22,6 +22,7 @@ set "Version=3.0"
|
|||||||
set "lastUpdated=2020-08-27"
|
set "lastUpdated=2020-08-27"
|
||||||
:: Remote repo
|
:: Remote repo
|
||||||
set "Remoterepo=https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/toolkit"
|
set "Remoterepo=https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/toolkit"
|
||||||
|
set "Requirements=https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/requirements.txt"
|
||||||
|
|
||||||
rem ================= Preparation =================
|
rem ================= Preparation =================
|
||||||
|
|
||||||
@@ -249,9 +250,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"
|
if "%Region%"=="cn" set "pip_option=--index-url=https://pypi.tuna.tsinghua.edu.cn/simple" && set "requirements=https://gitee.com/lmeszinc/AzurLaneAutoScript/raw/master/requirements.txt"
|
||||||
echo == ^| Updating requirements.txt
|
echo == ^| Updating requirements.txt
|
||||||
call pip install -r requirements.txt %pip_option% --no-warn-script-location > toolkit\Log\pip_update_log_%datetime%.log
|
call pip install -r %requirements% %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
|
||||||
|
|||||||
Reference in New Issue
Block a user