[fixbug] 更新adb地址
This commit is contained in:
parent
fffc1daed7
commit
fc676746cf
|
@ -74,11 +74,12 @@ cp.Command("maa self update")
|
|||
# fire it up
|
||||
cp.Command("docker stop redroid")
|
||||
redroid_path = os.getenv('redroid_path', "/home/lichx/.config/redroid-rk3588/")
|
||||
adb_address = os.getenv('adb_address', "localhost:5555")
|
||||
os.chdir(redroid_path)
|
||||
cp.Command("docker compose up -d")
|
||||
time.sleep(15)
|
||||
cp.RetryCommand("adb connect localhost:5555")
|
||||
cp.RetryCommand("adb -s localhost:5555 shell am start --windowingMode 4 com.hypergryph.arknights/com.u8.sdk.U8UnityContext")
|
||||
cp.RetryCommand(f"adb connect {adb_address}")
|
||||
cp.RetryCommand(f"adb -s {adb_address} shell am start --windowingMode 4 com.hypergryph.arknights/com.u8.sdk.U8UnityContext")
|
||||
# run maa
|
||||
haveError |= TaskFailRetry("maa run startup") != 0
|
||||
haveError |= TaskFailRetry("maa run recruit") != 0
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
"connection": {
|
||||
"address": "172.17.0.1:5555",
|
||||
"preset": "ADB"
|
||||
},
|
||||
"instance_options": {
|
||||
|
|
Loading…
Reference in New Issue