mid smth
This commit is contained in:
1 parent
7a0a09c2a1
commit
0af2d75754
18 files changed
+509
-37
No files matched your search
Executable
+26
@@ -0,0 +1,26 @@
|
||||
#!/bin/bash -e
|
||||
SDIR=$(cd "$(dirname "$0")" ; pwd -P)
|
||||
|
||||
T=$SDIR/step
|
||||
source $SDIR/paths
|
||||
|
||||
TARGET=ogs-chkgfx
|
||||
BUNDLE_ID=org.opengamestudio.chkgfx
|
||||
APP="$SDIR/../$TARGET/ver-ios/.build/Build/Products/Debug-iphonesimulator/ogs-chkgfx.app"
|
||||
|
||||
if [[ ! -d "$APP" ]]; then
|
||||
echo "iOS app not built yet, run util/build-ogs-chkgfx-ios"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DEVICE=${DEVICE:-"iPhone 15 Pro"}
|
||||
UDID=$(xcrun simctl list devices available | grep -m1 "$DEVICE (" | sed -E 's/.*\(([0-9A-F-]{36})\).*/\1/')
|
||||
if [[ -z "$UDID" ]]; then
|
||||
echo "Simulator '$DEVICE' not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
xcrun simctl boot "$UDID" 2>/dev/null || true
|
||||
sleep 2
|
||||
xcrun simctl install "$UDID" "$APP"
|
||||
xcrun simctl launch "$UDID" "$BUNDLE_ID"
|
||||
Reference in new issue
Block a user