Skip to content

Commit acc27b8

Browse files
committed
Updated to work for any version of NVivo
Updated to work for any version of NVivo by specifying the major version.
1 parent 7550819 commit acc27b8

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

NVivo/NVivo.download.recipe

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>Description</key>
6+
<string>Downloads the latest version of the specified MAJOR_VERSION of NVivo.</string>
7+
<key>Identifier</key>
8+
<string>com.github.joshua-d-miller.download.nvivo11</string>
9+
<key>Input</key>
10+
<dict>
11+
<key>NAME</key>
12+
<string>NVivo</string>
13+
<key>MAJOR_VERSION</key>
14+
<string>12</string>
15+
<key>SEARCH_URL</key>
16+
<string>http://qsrinternational.com/nvivo/support-overview/downloads</string>
17+
<key>SEARCH_PATTERN</key>
18+
<string>(?P&lt;url&gt;http(s)?\://download\.qsrinternational\.com/Software/NVivo%MAJOR_VERSION%forMac/NVivo( [0-9]{2})?\.dmg)</string>
19+
</dict>
20+
<key>MinimumVersion</key>
21+
<string>0.2.0</string>
22+
<key>Process</key>
23+
<array>
24+
<dict>
25+
<key>Processor</key>
26+
<string>URLTextSearcher</string>
27+
<key>Arguments</key>
28+
<dict>
29+
<key>url</key>
30+
<string>%SEARCH_URL%</string>
31+
<key>re_pattern</key>
32+
<string>%SEARCH_PATTERN%</string>
33+
</dict>
34+
</dict>
35+
<dict>
36+
<key>Processor</key>
37+
<string>com.github.homebysix.FindAndReplace/FindAndReplace</string>
38+
<key>Arguments</key>
39+
<dict>
40+
<key>find</key>
41+
<string> </string>
42+
<key>input_string</key>
43+
<string>%url%</string>
44+
<key>replace</key>
45+
<string>%20</string>
46+
</dict>
47+
</dict>
48+
<dict>
49+
<key>Processor</key>
50+
<string>URLDownloader</string>
51+
<key>Arguments</key>
52+
<dict>
53+
<key>url</key>
54+
<string>%output_string%</string>
55+
<key>filename</key>
56+
<string>%NAME%.dmg</string>
57+
</dict>
58+
</dict>
59+
<dict>
60+
<key>Processor</key>
61+
<string>EndOfCheckPhase</string>
62+
</dict>
63+
</array>
64+
</dict>
65+
</plist>

0 commit comments

Comments
 (0)