-
Notifications
You must be signed in to change notification settings - Fork 114
/
LaunchBar.download.recipe
77 lines (75 loc) · 2.27 KB
/
LaunchBar.download.recipe
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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Comment</key>
<string>Created with Recipe Robot v0.0.5 (https://github.com/homebysix/recipe-robot)</string>
<key>Description</key>
<string>Downloads the latest version of LaunchBar.
This recipe differs from the ones in jaharmi-recipes in the following ways:
- This one performs code signature verification.
- This one acquires the latest version (6) of LaunchBar.
- This one doesn't require a separate URLProvider processor.
</string>
<key>Identifier</key>
<string>com.github.homebysix.download.LaunchBar</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>LaunchBar</string>
</dict>
<key>MinimumVersion</key>
<string>0.5.0</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>re_pattern</key>
<string>(LaunchBar-[\d\.]+.dmg)</string>
<key>result_output_var_name</key>
<string>match</string>
<key>url</key>
<string>https://www.obdev.at/products/launchbar/download.html</string>
</dict>
<key>Processor</key>
<string>URLTextSearcher</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>filename</key>
<string>%NAME%.dmg</string>
<key>url</key>
<string>https://www.obdev.at/downloads/launchbar/%match%</string>
</dict>
<key>Processor</key>
<string>URLDownloader</string>
</dict>
<dict>
<key>Processor</key>
<string>EndOfCheckPhase</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>input_path</key>
<string>%pathname%/%NAME%.app</string>
<key>requirement</key>
<string>anchor apple generic and identifier "at.obdev.LaunchBar" and (certificate leaf[field.1.2.840.113635.100.6.1.9] /* exists */ or certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = MLZF7K7B5R)</string>
</dict>
<key>Processor</key>
<string>CodeSignatureVerifier</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>dmg_path</key>
<string>%pathname%</string>
</dict>
<key>Processor</key>
<string>AppDmgVersioner</string>
</dict>
</array>
</dict>
</plist>