Skip to content

Commit

Permalink
Re-add preview
Browse files Browse the repository at this point in the history
  • Loading branch information
arkie committed Jan 3, 2023
1 parent 6e8b94e commit 3f9eaba
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Screenshots
23 changes: 15 additions & 8 deletions MarkologyUITests/capture.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
#!/bin/sh

mkdir -p Screenshots

# TODO: `xcrun simctl create $target $target` if missing.
if [ "$#" -eq 0 ]
then
targets=('iPhone 14 Plus' 'iPhone 8 Plus' 'iPad Pro (12.9-inch) (6th generation)' 'iPad Pro (12.9-inch) (2nd generation)')
targets=('iPhone 14 Plus' 'iPhone 8 Plus' 'iPad Pro (12.9-inch) (6th generation)' 'iPad Pro (12.9-inch) (2nd generation)', 'macOS')
else
targets=("${@}")
fi

time='2021-03-14T11:23:58-04:00'
for target in "${targets[@]}"
do
xcrun simctl bootstatus "$target" -b
xcrun simctl status_bar "$target" override --time $time --batteryState charged --batteryLevel 100 --operatorName idk --cellularBars 4 --dataNetwork 'hide'
xcrun simctl ui "$target" appearance dark
xcrun simctl io "$target" recordVideo --codec=h264 "$target.mp4" &
RECORD_PID=$!
xcparse screenshots --model `sh -c "xcodebuild test -parallel-testing-enabled NO -target MarkologyUITests -scheme Markology -destination 'name=$target'" | grep xcresult` .
kill -INT $RECORD_PID
if [ 'macOS' = "$target" ]
then
xcparse screenshots --model `sh -c "xcodebuild test -parallel-testing-enabled NO -scheme MarkologyUITests -destination 'platform=macOS'" | grep xcresult` Screenshots
else
xcrun simctl bootstatus "$target" -b
xcrun simctl status_bar "$target" override --time $time --batteryState charged --batteryLevel 100 --operatorName idk --cellularBars 4 --dataNetwork 'hide'
xcrun simctl ui "$target" appearance dark
xcrun simctl io "$target" recordVideo --codec=h264 "Screenshots/$target.mp4" &
RECORD_PID=$!
xcparse screenshots --model `sh -c "xcodebuild test -parallel-testing-enabled NO -scheme MarkologyUITests -destination 'name=$target'" | grep xcresult` Screenshots
kill -INT $RECORD_PID
fi
done
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# [Markology](https://idk.club/markology) [![Download on the App Store](https://tools.applemediaservices.com/api/badges/download-on-the-app-store/black/en-US)](https://apps.apple.com/us/app/markology/id1553649446)

![Markology on macOS and iOS](preview.png)

## Useful for

- [x] Organizing thoughts *without* a heirarchy
Expand Down
Binary file added preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions preview.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 3f9eaba

Please sign in to comment.