forked from ninxsoft/Mist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMist.pkg.recipe.yaml
98 lines (98 loc) · 3.42 KB
/
Mist.pkg.recipe.yaml
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
95
96
97
98
---
Identifier: com.ninxsoft.pkg.mist
Input:
NAME: Mist
IDENTIFIER: com.ninxsoft.pkg.mist
Process:
- Processor: URLDownloader
Arguments:
PKG: /Applications/Mist.app
url: ""
- Processor: EndOfCheckPhase
- Processor: CodeSignatureVerifier
Arguments:
input_path: "%pathname%"
requirement: 'anchor apple generic and identifier "com.ninxsoft.mist" 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] = "7K3HVCLV7Z")'
- Processor: Versioner
Arguments:
input_plist_path: "%pathname%/Contents/Info.plist"
- Processor: PkgRootCreator
Arguments:
pkgroot: "%RECIPE_CACHE_DIR%/payload"
pkgdirs:
"Applications": "0755"
"Library": "0755"
"Library/LaunchDaemons": "0755"
"Library/PrivilegedHelperTools": "0755"
- Processor: Copier
Arguments:
source_path: "/Applications/Mist.app"
destination_path: "%RECIPE_CACHE_DIR%/payload/Applications/Mist.app"
- Processor: Copier
Arguments:
source_path: "/Library/LaunchDaemons/com.ninxsoft.mist.helper.plist"
destination_path: "%RECIPE_CACHE_DIR%/payload/Library/LaunchDaemons/com.ninxsoft.mist.helper.plist"
- Processor: Copier
Arguments:
source_path: "/Applications/Mist.app/Contents/Library/LaunchServices/com.ninxsoft.mist.helper"
destination_path: "%RECIPE_CACHE_DIR%/payload/Library/PrivilegedHelperTools/com.ninxsoft.mist.helper"
- Processor: Copier
Arguments:
source_path: "%MIST_RECIPE_DIR%/Scripts"
destination_path: "%RECIPE_CACHE_DIR%/scripts"
- Processor: PathDeleter
Arguments:
path_list:
- "%RECIPE_CACHE_DIR%/scripts/uninstall.sh"
- Processor: PkgCreator
Arguments:
pkg_request:
id: "%IDENTIFIER%"
version: "%version%"
pkgtype: flat
pkgroot: "%RECIPE_CACHE_DIR%/payload"
pkgdir: "%RECIPE_CACHE_DIR%"
pkgname: "%NAME%-%version%"
chown:
- path: /Applications
user: root
group: wheel
mode: "0755"
- path: /Applications/Mist.app
user: root
group: wheel
mode: "0755"
- path: /Library
user: root
group: wheel
mode: "0755"
- path: /Library/LaunchDaemons
user: root
group: wheel
mode: "0755"
- path: /Library/LaunchDaemons/com.ninxsoft.mist.helper.plist
user: root
group: wheel
mode: "0644"
- path: /Library/PrivilegedHelperTools
user: root
group: wheel
mode: "0755"
- path: /Library/PrivilegedHelperTools/com.ninxsoft.mist.helper
user: root
group: wheel
mode: "0544"
scripts: "%RECIPE_CACHE_DIR%/scripts"
- Processor: com.github.rtrouton.SharedProcessors/PkgSigner
Arguments:
pkg_path: "%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg"
signing_cert: "%DEVELOPER_ID_INSTALLER%"
- Processor: FileMover
Arguments:
source: "%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg"
target: "%DESTINATION_DIR%/%NAME% %version%.pkg"
- Processor: PathDeleter
Arguments:
path_list:
- "%RECIPE_CACHE_DIR%/scripts"
- "%RECIPE_CACHE_DIR%/%NAME%-%version%-unsigned.pkg"