| 123456789101112131415161718 |
- #!/bin/zsh
- set -euo pipefail
- task_root="$(cd "$(dirname "$0")/../.." && pwd)"
- task_app="/tmp/JokerSudokuLocalSDKClean/Build/Products/Debug-iphonesimulator/JokerSudoku.app"
- task_bundle="com.mowhite.jokersudoku.a86a4400b4733"
- task_device="$1"
- task_family="$2"
- task_language="${3:-zh-Hans}"
- task_capture_root="$task_root/Screenshots/appstore-raw"
- if [[ "$task_language" != "zh-Hans" ]]; then task_capture_root="$task_capture_root/$task_language"; fi
- mkdir -p "$task_capture_root/$task_family"
- xcrun simctl install "$task_device" "$task_app"
- xcrun simctl status_bar "$task_device" override --time '9:41' --dataNetwork wifi --wifiMode active --wifiBars 3 --batteryState charged --batteryLevel 100
- for task_screen in game difficulty daily continue settings; do
- xcrun simctl launch --terminate-running-process "$task_device" "$task_bundle" -joker-preview "$task_screen" -joker-language "$task_language"
- sleep 8
- xcrun simctl io "$task_device" screenshot "$task_capture_root/$task_family/$task_screen.png"
- done
|