mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-18 02:10:21 +08:00
fix: CloseDown not works on macOS (#5920)
This commit is contained in:
@@ -142,6 +142,7 @@
|
||||
"configName": "CompatMac",
|
||||
"baseConfig": "Compatible",
|
||||
"ncAddress": "[Adb] -s [AdbSerial] shell \"cat /proc/net/arp | grep : | sort\"",
|
||||
"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": ""
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user