mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 12:08:21 +08:00
Opt: some optmizations on alas.bat
- Better tips on interface
This commit is contained in:
@@ -72,7 +72,9 @@ if "%serial_input%"=="" ( set "serial_input=127.0.0.1:5555" )
|
||||
%adbBin% connect %serial_input% | find /i "connected to" >nul
|
||||
if errorlevel 1 (
|
||||
echo The connection was not successful on SERIAL: %Serial%
|
||||
goto Import_Serial
|
||||
echo Check our wiki for more info
|
||||
pause > NUL
|
||||
start https://github.com/LmeSzinc/AzurLaneAutoScript/wiki/Installation_en
|
||||
) else (
|
||||
call command\Config.bat Serial %serial_input%
|
||||
call command\ConfigTemplate.bat SerialTemplate %serial_input%
|
||||
@@ -87,6 +89,7 @@ echo Press any to continue...
|
||||
pause > NUL
|
||||
goto :eof
|
||||
|
||||
|
||||
:: %cd%: "%root%"
|
||||
:: Get the proxy settings of CMD from "config\deploy.ini"
|
||||
:Import_Proxy
|
||||
@@ -98,24 +101,15 @@ if exist config\deploy.ini (
|
||||
) else ( set "state_globalProxy=disable" )
|
||||
goto :eof
|
||||
|
||||
:: %cd%: "toolkit\"
|
||||
:: Get %DeployMode% from "toolkit\deploy.log"
|
||||
:: Get %DeployMode% from "deploy.log"
|
||||
:Import_DeployMode
|
||||
if exist deploy.log (
|
||||
for /f "tokens=2 delims= " %%i in ('findstr /i "DeployMode" deploy.log') do ( set "DeployMode=%%i" )
|
||||
) else ( set "DeployMode=unknown" )
|
||||
goto :eof
|
||||
|
||||
:: %cd%: "toolkit\"
|
||||
:: Get default options for 'wget.exe' from "toolkit\wget.ini" -> %WgetOptions%
|
||||
:Import_WgetOptions
|
||||
if exist wget.ini (
|
||||
for /f "eol=# delims=" %%i in (wget.ini) do ( set "WgetOptions=%%i" && goto :eof )
|
||||
) else ( set "WgetOptions=-q --show-progtoolkits --progtoolkits=bar:force:noscroll --no-check-certificate -nc" )
|
||||
goto :eof
|
||||
|
||||
:: %cd%: "%root%"
|
||||
:: Get %opt3_info% according to "toolkit\deploy.log"
|
||||
:: Get %opt3_info% according to "deploy.log"
|
||||
:Import_InfoOpt3
|
||||
set "opt3_info="
|
||||
if exist deploy.log (
|
||||
@@ -127,7 +121,6 @@ goto :eof
|
||||
|
||||
:: %cd%: "%root%"
|
||||
:: Get %opt4_info% according to "Console.bat"
|
||||
:: call "command\lang_*.bat" before calling this function.
|
||||
:Import_InfoOpt4
|
||||
set "opt4_info="
|
||||
if exist console.bat (
|
||||
|
||||
Reference in New Issue
Block a user