-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
78 lines (70 loc) · 4.65 KB
/
Makefile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
screenshots-8.0:
mkdir -p '../watch-date-picker-qa/8.0'
xcodebuild test \
-disable-concurrent-destination-testing \
-project 'Examples/WatchDatePickerExamples.xcodeproj' \
-scheme 'Examples WatchKit App' \
-destination 'platform=watchOS Simulator,OS=8.0,name=Apple Watch Series 6 (40mm)' \
-destination 'platform=watchOS Simulator,OS=8.0,name=Apple Watch Series 6 (44mm)' \
-destination 'platform=watchOS Simulator,OS=8.0,name=Apple Watch Series 7 (41mm)' \
-destination 'platform=watchOS Simulator,OS=8.0,name=Apple Watch Series 7 (45mm)'
screenshots-9.0:
mkdir -p '../watch-date-picker-qa/9.0'
xcodebuild test \
-disable-concurrent-destination-testing \
-project 'Examples/WatchDatePickerExamples.xcodeproj' \
-scheme 'Examples WatchKit App' \
-destination 'platform=watchOS Simulator,OS=9.0,name=Apple Watch Series 6 (40mm)' \
-destination 'platform=watchOS Simulator,OS=9.0,name=Apple Watch Series 6 (44mm)' \
-destination 'platform=watchOS Simulator,OS=9.0,name=Apple Watch Series 8 (41mm)' \
-destination 'platform=watchOS Simulator,OS=9.0,name=Apple Watch Series 8 (45mm)' \
-destination 'platform=watchOS Simulator,OS=9.0,name=Apple Watch Ultra (49mm)'
screenshots-9.1:
mkdir -p '../watch-date-picker-qa/9.1'
xcodebuild test \
-disable-concurrent-destination-testing \
-project 'Examples/WatchDatePickerExamples.xcodeproj' \
-scheme 'Examples WatchKit App' \
-destination 'platform=watchOS Simulator,OS=9.1,name=Apple Watch Series 6 (40mm)' \
-destination 'platform=watchOS Simulator,OS=9.1,name=Apple Watch Series 6 (44mm)' \
-destination 'platform=watchOS Simulator,OS=9.1,name=Apple Watch Series 8 (41mm)' \
-destination 'platform=watchOS Simulator,OS=9.1,name=Apple Watch Series 8 (45mm)' \
-destination 'platform=watchOS Simulator,OS=9.1,name=Apple Watch Ultra (49mm)'
screenshots-9.4:
mkdir -p '../watch-date-picker-qa/9.4'
xcodebuild test \
-disable-concurrent-destination-testing \
-project 'Examples/WatchDatePickerExamples.xcodeproj' \
-scheme 'Examples WatchKit App' \
-destination 'platform=watchOS Simulator,OS=9.4,name=Apple Watch Series 6 (40mm)' \
-destination 'platform=watchOS Simulator,OS=9.4,name=Apple Watch Series 6 (44mm)' \
-destination 'platform=watchOS Simulator,OS=9.4,name=Apple Watch Series 8 (41mm)' \
-destination 'platform=watchOS Simulator,OS=9.4,name=Apple Watch Series 8 (45mm)' \
-destination 'platform=watchOS Simulator,OS=9.4,name=Apple Watch Ultra (49mm)'
screenshots-crush:
for f in '../watch-date-picker-qa/8.0/*.png'; do pngcrush -ow $f; done
for f in '../watch-date-picker-qa/9.0/*.png'; do pngcrush -ow $f; done
for f in '../watch-date-picker-qa/9.1/*.png'; do pngcrush -ow $f; done
for f in '../watch-date-picker-qa/9.4/*.png'; do pngcrush -ow $f; done
install:
export WDP_QA_PATH='../watch-date-picker-qa/9.4'
export WDP_DOC_PATH='Sources/WatchDatePicker/Documentation.docc/Resources'
cp "$WDP_QA_PATH/DatePicker-1@45mm~en.png" "$WDP_DOC_PATH/DatePicker-1.png"
cp "$WDP_QA_PATH/DatePicker-2@45mm~en.png" "$WDP_DOC_PATH/DatePicker-2.png"
cp "$WDP_QA_PATH/DatePicker-3@45mm~en.png" "$WDP_DOC_PATH/DatePicker-3.png"
cp "$WDP_QA_PATH/DatePicker_date-1@45mm~en.png" "$WDP_DOC_PATH/DatePicker_date-1.png"
cp "$WDP_QA_PATH/DatePicker_date-2@45mm~en.png" "$WDP_DOC_PATH/DatePicker_date-2.png"
cp "$WDP_QA_PATH/DatePicker_hourAndMinute-1@45mm~en.png" "$WDP_DOC_PATH/DatePicker_hourAndMinute-1.png"
cp "$WDP_QA_PATH/DatePicker_hourAndMinute-2@45mm~en.png" "$WDP_DOC_PATH/DatePicker_hourAndMinute-2.png"
cp "$WDP_QA_PATH/DatePicker_optional-1@45mm~en.png" "$WDP_DOC_PATH/DatePicker_optional-1.png"
cp "$WDP_QA_PATH/DatePicker_optional-2@45mm~en.png" "$WDP_DOC_PATH/DatePicker_optional-2.png"
cp "$WDP_QA_PATH/DatePicker_optional-3@45mm~en.png" "$WDP_DOC_PATH/DatePicker_optional-3.png"
cp "$WDP_QA_PATH/DatePicker_date_optional-1@45mm~en.png" "$WDP_DOC_PATH/DatePicker_date_optional-1.png"
cp "$WDP_QA_PATH/DatePicker_date_optional-2@45mm~en.png" "$WDP_DOC_PATH/DatePicker_date_optional-2.png"
cp "$WDP_QA_PATH/DatePicker_hourAndMinute_optional-1@45mm~en.png" "$WDP_DOC_PATH/DatePicker_hourAndMinute_optional-1.png"
cp "$WDP_QA_PATH/DatePicker_hourAndMinute_optional-2@45mm~en.png" "$WDP_DOC_PATH/DatePicker_hourAndMinute_optional-2.png"
cp "$WDP_QA_PATH/StandaloneDateInputView@45mm~en.png" "$WDP_DOC_PATH/DateInputView.png"
cp "$WDP_QA_PATH/StandaloneDateInputView@45mm~fr.png" "$WDP_DOC_PATH/DateInputView_fr.png"
cp "$WDP_QA_PATH/StandaloneTimeInputView@45mm~en.png" "$WDP_DOC_PATH/TimeInputView.png"
cp "$WDP_QA_PATH/StandaloneTimeInputView_24hr@45mm~en.png" "$WDP_DOC_PATH/TimeInputView_24hr.png"
cp "$WDP_QA_PATH/StandaloneTimeInputView_24hrHidden@45mm~en.png" "$WDP_DOC_PATH/TimeInputView_24hrHidden.png"