From 6fdccf22ff627eeada5e383813fe7e2e835e12e0 Mon Sep 17 00:00:00 2001 From: lichx Date: Tue, 14 Jan 2025 22:46:02 +0800 Subject: [PATCH] =?UTF-8?q?[feature]=20=E6=9B=B4=E6=96=B0=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E5=AE=9A=E4=B9=89=E7=BB=9F=E4=B8=80=E5=85=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArknightsMaaConfig/maa.py | 3 ++- run_all.sh | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100755 run_all.sh diff --git a/ArknightsMaaConfig/maa.py b/ArknightsMaaConfig/maa.py index b40f23f..6f1b789 100755 --- a/ArknightsMaaConfig/maa.py +++ b/ArknightsMaaConfig/maa.py @@ -73,7 +73,8 @@ cp.Command("maa update") cp.Command("maa self update") # fire it up 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") time.sleep(15) cp.RetryCommand("adb connect localhost:5555") diff --git a/run_all.sh b/run_all.sh new file mode 100755 index 0000000..eacb096 --- /dev/null +++ b/run_all.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +./ArknightsMaaConfig/maa.py