2
2
:: Alas Run Tool v3
3
3
:: Author: whoamikyo (https://kyo.ninja)
4
4
:: Version: 3.0
5
- :: Last updated: 2020-08-22
5
+ :: Last updated: 2020-08-23
6
6
:: >>> Get updated from: https://github.com/LmeSzinc/AzurLaneAutoScript <<<
7
7
@ echo off
8
8
pushd " %~dp0 "
9
9
setlocal EnableDelayedExpansion
10
- set " Version = 3.0"
11
- set " lastUpdated = 2020-08-22 "
10
+ set " Version = 3.0"
11
+ set " lastUpdated = 2020-08-23 "
12
12
:: Remote repo
13
- set " Remoterepo = https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/toolkit"
13
+ set " Remoterepo = https://raw.githubusercontent.com/LmeSzinc/AzurLaneAutoScript/master/toolkit"
14
14
15
15
rem ================= Preparation =================
16
16
17
17
:: Set the root directory
18
- set " root = %~dp0 "
18
+ set " root = %~dp0 "
19
19
set " root = %root:~0 ,-1 % "
20
20
cd " %root% "
21
21
@@ -53,10 +53,10 @@ rem echo Language: %Language% & echo Region: %Region% & echo SystemType: %System
53
53
rem echo http_proxy: %http_proxy% & echo https_proxy: %https_proxy%
54
54
echo DeployMode: %DeployMode%
55
55
rem echo KeepLocalChanges: %KeepLocalChanges%
56
- rem echo RealtimeMode: %RealtimeMode%
57
- rem echo FirstRun: %FirstRun%
56
+ echo RealtimeMode: %RealtimeMode%
57
+ echo FirstRun: %FirstRun%
58
58
rem echo IsUsingGit: %IsUsingGit%
59
- rem echo Serial: %Serial%
59
+ echo Serial: %Serial%
60
60
setLocal EnableDelayedExpansion
61
61
set " STR = Alas Run Tool %Version% ^ "
62
62
set " SIZE = 100"
@@ -150,7 +150,7 @@ set "LEN=0"
150
150
:strLen_Loop
151
151
if not " !!STR:~%LEN%! !" == " " set /A " LEN += 1" & goto :strLen_Loop
152
152
set " equal = ===================================================================================================="
153
- set " spaces = ===================================================================================================="
153
+ set " spaces = ===================================================================================================="
154
154
call echo %% equal:~0,%SIZE% %%
155
155
set /a " pref_len = %SIZE% - %LEN% - 2"
156
156
set /a " pref_len /= 2"
@@ -247,13 +247,13 @@ rem ================= OPTION 5 =================
247
247
:Setting
248
248
cls
249
249
setLocal EnableDelayedExpansion
250
- set " STR2 = Advanced Settings^ !"
250
+ set " STR2 = Advanced Settings^ !"
251
251
set " SIZE = 100"
252
252
set " LEN = 0"
253
253
:strLen_Loop
254
254
if not " !!STR2:~%LEN%! !" == " " set /A " LEN += 1" & goto :strLen_Loop
255
- set " equal = ===================================================================================================="
256
- set " spaces = ===================================================================================================="
255
+ set " equal = ===================================================================================================="
256
+ set " spaces = ===================================================================================================="
257
257
call echo %% equal:~0,%SIZE% %%
258
258
set /a " pref_len = %SIZE% - %LEN% - 2"
259
259
set /a " pref_len /= 2"
@@ -266,11 +266,10 @@ echo. & echo [0] Return to the Main Menu
266
266
echo . & echo [1] Select Download Region
267
267
echo . & echo [2] Set Global Proxy
268
268
echo . & 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
274
273
echo . & echo .
275
274
echo ====================================================================================================
276
275
set opt2_choice = -1
@@ -280,11 +279,10 @@ if "%opt2_choice%"=="0" goto MENU
280
279
if " %opt2_choice% " == " 1" goto Region_setting
281
280
if " %opt2_choice% " == " 2" goto Proxy_setting
282
281
if " %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
288
286
echo Please input a valid option.
289
287
goto ReturnToSetting
290
288
@@ -315,7 +313,7 @@ echo.
315
313
setlocal EnableDelayedExpansion
316
314
if /i " %opt6_op5_choice% " == " Y" (
317
315
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" )
319
317
call command\Config.bat Serial !opt6_op5_choice!
320
318
echo .
321
319
echo The serial was set successfully.
@@ -375,9 +373,9 @@ if /i "%opt6_opt3_choice%"=="T" (
375
373
set /p opt6_opt3_proxyHost = Please input - Proxy Host ^(DEFAULT http://127.0.0.1 ^):
376
374
set /p opt6_opt3_httpPort = Please input - Http Port ^(DEFAULT 1080 ^):
377
375
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" )
381
379
call command\Config.bat ProxyHost !opt6_opt3_proxyHost!
382
380
call command\Config.bat HttpPort !opt6_opt3_httpPort!
383
381
call command\Config.bat HttpsPort !opt6_opt3_httpsPort!
@@ -413,14 +411,6 @@ if /i "%opt6_opt6_choice%"=="Y" (
413
411
) else ( echo Invalid input. Cancelled. )
414
412
goto ReturnToSetting
415
413
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
-
424
414
rem ================= FUNCTIONS =================
425
415
426
416
:ReturnToSetting
0 commit comments