-
Notifications
You must be signed in to change notification settings - Fork 87
/
FortiClientVPN6.pkg.recipe
94 lines (94 loc) · 3.1 KB
/
FortiClientVPN6.pkg.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<?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>Description</key>
<string>Downloads latest Forticlient VPN 6 disk image and builds a package</string>
<key>Identifier</key>
<string>com.github.dataJAR-recipes.pkg.forticlientvpn</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>ForticlientVPN6</string>
<key>SEARCH_URL</key>
<string>https://www.forticlient.com/downloads</string>
<key>USER_AGENT</key>
<string>Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/600.8.9 (KHTML, like Gecko) Version/8.0.8 Safari/600.8.9</string>
</dict>
<key>ParentRecipe</key>
<string>com.github.dataJAR-recipes.download.forticlientvpn</string>
<key>Process</key>
<array>
<dict>
<key>Arguments</key>
<dict>
<key>flat_pkg_path</key>
<string>%pathname%/install.mpkg</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/install</string>
</dict>
<key>Processor</key>
<string>FlatPkgUnpacker</string>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_payload_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/install/fctconsole.pkg/Payload</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/fctconsole</string>
<key>purge_destination</key>
<true/>
</dict>
<key>Processor</key>
<string>PkgPayloadUnpacker</string>
</dict>
<dict>
<key>Processor</key>
<string>Unarchiver</string>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/fctconsole/FortiClient.tgz</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/FortiClient/</string>
<key>purge_destination</key>
<true/>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>Versioner</string>
<key>Arguments</key>
<dict>
<key>input_plist_path</key>
<string>%RECIPE_CACHE_DIR%/unpack/FortiClient/FortiClient.app/Contents/Info.plist</string>
<key>plist_version_key</key>
<string>CFBundleShortVersionString</string>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PathDeleter</string>
<key>Arguments</key>
<dict>
<key>path_list</key>
<array>
<string>%RECIPE_CACHE_DIR%/unpack</string>
</array>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>PkgCopier</string>
<key>Arguments</key>
<dict>
<key>source_pkg</key>
<string>%pathname%/install.mpkg</string>
<key>pkg_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg</string>
</dict>
</dict>
</array>
</dict>
</plist>