-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathgen_screenshots.sh
More file actions
executable file
ยท42 lines (35 loc) ยท 951 Bytes
/
gen_screenshots.sh
File metadata and controls
executable file
ยท42 lines (35 loc) ยท 951 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#!/bin/zsh
TARGET_DIR_1="./PomPadDo.mobileUITests"
echo "๐ Change dir to: $TARGET_DIR_1"
cd "$TARGET_DIR_1" || {
echo "โ Error changing directory: $TARGET_DIR_1"
exit 1
}
echo "๐ Run iOS fastlane snapshot..."
if ! fastlane snapshot; then
echo "โ Error running fastlane snapshot"
exit 1
fi
TARGET_DIR_2="../screenshots/mobile"
echo "\n๐ Change dir to: $TARGET_DIR_2"
cd "$TARGET_DIR_2" || {
echo "โ Error changing directory: $TARGET_DIR_2"
exit 1
}
echo "๐จ Run fastlane frameit..."
if ! fastlane frameit; then
echo "โ Error running fastlane frameit"
exit 1
fi
TARGET_DIR_3="../../PomPadDo.watchUITests"
echo "๐ Change dir to: $TARGET_DIR_3"
cd "$TARGET_DIR_3" || {
echo "โ Error changing directory: $TARGET_DIR_3"
exit 1
}
echo "๐ Run watchOS fastlane snapshot..."
if ! fastlane snapshot; then
echo "โ Error running fastlane snapshot"
exit 1
fi
echo "\nโ
All done!"