fix: CloseDown not works on macOS (#5920)

This commit is contained in:
MistEO
2023-08-13 15:54:15 +08:00
committed by GitHub

View File

@@ -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": ""
},
{