[feature] 更新脚本,定义统一入口

This commit is contained in:
lichx 2025-01-14 22:46:02 +08:00
parent 33d9f2eff1
commit 6fdccf22ff
2 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,8 @@ cp.Command("maa update")
cp.Command("maa self update") cp.Command("maa self update")
# fire it up # fire it up
cp.Command("docker stop redroid") cp.Command("docker stop redroid")
os.chdir("/home/lichx/.config/redroid-rk3588/") redroid_path = os.getenv('redroid_path', "/home/lichx/.config/redroid-rk3588/")
os.chdir(redroid_path)
cp.Command("docker compose up -d") cp.Command("docker compose up -d")
time.sleep(15) time.sleep(15)
cp.RetryCommand("adb connect localhost:5555") cp.RetryCommand("adb connect localhost:5555")

2
run_all.sh Executable file
View File

@ -0,0 +1,2 @@
#!/usr/bin/env bash
./ArknightsMaaConfig/maa.py