22:: Alas Run Tool v3
33:: Author: whoamikyo (https://kyo.ninja)
44:: Version: 3.0
5- :: Last updated: 2020-08-22
5+ :: Last updated: 2020-08-23
66:: >>> Get updated from: https://github.com/LmeSzinc/AzurLaneAutoScript <<<
77@ echo off
88pushd " %~dp0 "
99setlocal EnableDelayedExpansion
10- set " Version = 3.0"
11- set " lastUpdated = 2020-08-22 "
10+ set " Version = 3.0"
11+ set " lastUpdated = 2020-08-23 "
1212:: Remote repo
13- set " Remoterepo = https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/toolkit"
13+ set " Remoterepo = https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/toolkit"
1414
1515rem ================= Preparation =================
1616
1717:: Set the root directory
18- set " root = %~dp0 "
18+ set " root = %~dp0 "
1919set " root = %root:~0 ,-1 % "
2020cd " %root% "
2121
@@ -53,10 +53,10 @@ rem echo Language: %Language% & echo Region: %Region% & echo SystemType: %System
5353rem echo http_proxy: %http_proxy% & echo https_proxy: %https_proxy%
5454echo DeployMode: %DeployMode%
5555rem echo KeepLocalChanges: %KeepLocalChanges%
56- rem echo RealtimeMode: %RealtimeMode%
57- rem echo FirstRun: %FirstRun%
56+ echo RealtimeMode: %RealtimeMode%
57+ echo FirstRun: %FirstRun%
5858rem echo IsUsingGit: %IsUsingGit%
59- rem echo Serial: %Serial%
59+ echo Serial: %Serial%
6060setLocal EnableDelayedExpansion
6161set " STR = Alas Run Tool %Version% ^ "
6262set " SIZE = 100"
@@ -150,7 +150,7 @@ set "LEN=0"
150150:strLen_Loop
151151 if not " !!STR:~%LEN%! !" == " " set /A " LEN += 1" & goto :strLen_Loop
152152set " equal = ===================================================================================================="
153- set " spaces = ===================================================================================================="
153+ set " spaces = ===================================================================================================="
154154call echo %% equal:~0,%SIZE% %%
155155set /a " pref_len = %SIZE% - %LEN% - 2"
156156set /a " pref_len /= 2"
@@ -247,13 +247,13 @@ rem ================= OPTION 5 =================
247247:Setting
248248cls
249249setLocal EnableDelayedExpansion
250- set " STR2 = Advanced Settings^ !"
250+ set " STR2 = Advanced Settings^ !"
251251set " SIZE = 100"
252252set " LEN = 0"
253253:strLen_Loop
254254 if not " !!STR2:~%LEN%! !" == " " set /A " LEN += 1" & goto :strLen_Loop
255- set " equal = ===================================================================================================="
256- set " spaces = ===================================================================================================="
255+ set " equal = ===================================================================================================="
256+ set " spaces = ===================================================================================================="
257257call echo %% equal:~0,%SIZE% %%
258258set /a " pref_len = %SIZE% - %LEN% - 2"
259259set /a " pref_len /= 2"
@@ -266,11 +266,10 @@ echo. & echo [0] Return to the Main Menu
266266echo . & echo [1] Select Download Region
267267echo . & echo [2] Set Global Proxy
268268echo . & echo [3] Set SERIAL (For ADB connect)
269- echo . & echo [4] (Disable/Enable) Network connection test while updating
270- echo . & echo [5] (Disable/Enable) Realtime Connection Mode (Only Bluestacks Beta)
271- echo . & echo [6] (Disable/Enable) Keep local changes
272- echo . & echo [7] Change default Branch to update (master/dev)
273- echo . & echo [8] Reset Settings
269+ echo . & echo [4] (Disable/Enable) Realtime Connection Mode (Only Bluestacks Beta)
270+ echo . & echo [5] (Disable/Enable) Keep local changes
271+ echo . & echo [6] Change default Branch to update (master/dev)
272+ echo . & echo [7] Reset Settings
274273echo . & echo .
275274echo ====================================================================================================
276275set opt2_choice = -1
@@ -280,11 +279,10 @@ if "%opt2_choice%"=="0" goto MENU
280279if " %opt2_choice% " == " 1" goto Region_setting
281280if " %opt2_choice% " == " 2" goto Proxy_setting
282281if " %opt2_choice% " == " 3" goto Serial_setting
283- if " %opt2_choice% " == " 4" goto NetworkTest_setting
284- if " %opt2_choice% " == " 5" goto Realtime_mode
285- if " %opt2_choice% " == " 6" goto Keep_local_changes
286- if " %opt2_choice% " == " 7" goto Branch_setting
287- if " %opt2_choice% " == " 8" goto Reset_setting
282+ if " %opt2_choice% " == " 4" goto Realtime_mode
283+ if " %opt2_choice% " == " 5" goto Keep_local_changes
284+ if " %opt2_choice% " == " 6" goto Branch_setting
285+ if " %opt2_choice% " == " 7" goto Reset_setting
288286echo Please input a valid option.
289287goto ReturnToSetting
290288
@@ -315,7 +313,7 @@ echo.
315313setlocal EnableDelayedExpansion
316314if /i " %opt6_op5_choice% " == " Y" (
317315 set /p opt6_op5_choice = Please input - SERIAL ^(DEFAULT 127.0.0.1:5555 ^):
318- if " !opt6_op5_choice! " == " " ( set " opt6_op5_choice = 127.0.0.1:5555" )
316+ if " !opt6_op5_choice! " == " " ( set " opt6_op5_choice = 127.0.0.1:5555" )
319317 call command\Config.bat Serial !opt6_op5_choice!
320318 echo .
321319 echo The serial was set successfully.
@@ -375,9 +373,9 @@ if /i "%opt6_opt3_choice%"=="T" (
375373 set /p opt6_opt3_proxyHost = Please input - Proxy Host ^(DEFAULT http://127.0.0.1 ^):
376374 set /p opt6_opt3_httpPort = Please input - Http Port ^(DEFAULT 1080 ^):
377375 set /p opt6_opt3_httpsPort = Please input - Https Port ^(DEFAULT 1080 ^):
378- if " !opt6_opt3_proxyHost! " == " " ( set " opt6_opt3_proxyHost = http://127.0.0.1" )
379- if " !opt6_opt3_httpPort! " == " " ( set " opt6_opt3_httpPort = 1080" )
380- if " !opt6_opt3_httpsPort! " == " " ( set " opt6_opt3_httpsPort = 1080" )
376+ if " !opt6_opt3_proxyHost! " == " " ( set " opt6_opt3_proxyHost = http://127.0.0.1" )
377+ if " !opt6_opt3_httpPort! " == " " ( set " opt6_opt3_httpPort = 1080" )
378+ if " !opt6_opt3_httpsPort! " == " " ( set " opt6_opt3_httpsPort = 1080" )
381379 call command\Config.bat ProxyHost !opt6_opt3_proxyHost!
382380 call command\Config.bat HttpPort !opt6_opt3_httpPort!
383381 call command\Config.bat HttpsPort !opt6_opt3_httpsPort!
@@ -413,14 +411,6 @@ if /i "%opt6_opt6_choice%"=="Y" (
413411) else ( echo Invalid input. Cancelled. )
414412goto ReturnToSetting
415413
416- :NetworkTest_setting
417- call command\Config.bat NetTest
418- goto ReturnToSetting
419-
420- :Upgrade_setting
421- call command\Config.bat UpgradeOnlyViaGitHub
422- goto ReturnToSetting
423-
424414rem ================= FUNCTIONS =================
425415
426416:ReturnToSetting
0 commit comments