From 054f5a6ee5348dd29e6d7ea3a6e146692c4a1f1a Mon Sep 17 00:00:00 2001 From: Long Wang Date: Mon, 14 Aug 2023 15:18:11 +0800 Subject: [PATCH] feat: add config `CompatPOSIXShell` --- resource/config.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resource/config.json b/resource/config.json index d59663cacd..e84ebdca77 100644 --- a/resource/config.json +++ b/resource/config.json @@ -145,6 +145,11 @@ "stop": "[Adb] -s [AdbSerial] shell 'PACKAGE_NAME=$(dumpsys activity activities 2>/dev/null | grep -E \"(packageName|Activities)=[^\\n]+arknights\" 2>/dev/null | grep -i -o -E \"[^= ]*arknights[^ /\\n]*\" | head -n 1); if [ -n \"$PACKAGE_NAME\" ]; then echo \"Closing $PACKAGE_NAME\"; am force-stop $PACKAGE_NAME; else echo \"app not running or arknights package name not found\"; fi'", "screencapRawWithGzip": "" }, + { + "configName": "CompatPOSIXShell", + "baseConfig": "General", + "stop": "[Adb] -s [AdbSerial] shell 'PACKAGE_NAME=$(dumpsys activity activities 2>/dev/null | grep -E \"(packageName|Activities)=[^\\n]+arknights\" 2>/dev/null | grep -i -o -E \"[^= ]*arknights[^ /\\n]*\" | head -n 1); if [ -n \"$PACKAGE_NAME\" ]; then echo \"Closing $PACKAGE_NAME\"; am force-stop $PACKAGE_NAME; else echo \"app not running or arknights package name not found\"; fi'" + }, { "configName": "GeneralWithoutScreencapErr", "baseConfig": "General",