-
Notifications
You must be signed in to change notification settings - Fork 0
/
TextMate2.munkiserver.recipe
67 lines (67 loc) · 1.68 KB
/
TextMate2.munkiserver.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
<?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>Identifier</key>
<string>com.github.mkuron.munkiserver.TextMate2</string>
<key>Input</key>
<dict>
<key>NAME</key>
<string>TextMate</string>
</dict>
<key>MinimumVersion</key>
<string>0.2.0</string>
<key>ParentRecipe</key>
<string>com.github.autopkg.download.TextMate2</string>
<key>Process</key>
<array>
<dict>
<key>Processor</key>
<string>Unarchiver</string>
<key>Arguments</key>
<dict>
<key>archive_path</key>
<string>%pathname%</string>
<key>archive_format</key>
<string>tar_bzip2</string>
<key>destination_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
<key>purge_destination</key>
<true/>
</dict>
</dict>
<dict>
<key>Processor</key>
<string>DmgCreator</string>
<key>Arguments</key>
<dict>
<key>dmg_root</key>
<string>%RECIPE_CACHE_DIR%/%NAME%</string>
<key>dmg_path</key>
<string>%RECIPE_CACHE_DIR%/%NAME%.dmg</string>
</dict>
</dict>
<dict>
<key>Arguments</key>
<dict>
<key>pkg_path</key>
<string>%dmg_path%</string>
<key>pkginfo</key>
<dict>
<key>postinstall_script</key>
<string>#!/bin/sh
[ -d /usr/local/bin ] || mkdir -p /usr/local/bin
/bin/cp -f -p /Applications/TextMate.app/Contents/Resources/mate /usr/local/bin/mate
</string>
<key>postuninstall_script</key>
<string>#!/bin/sh
[ -e /usr/local/bin/mate ] && rm -f /usr/local/bin/mate
</string>
</dict>
</dict>
<key>Processor</key>
<string>MunkiServerImporter</string>
</dict>
</array>
</dict>
</plist>