Mist/Mist.pkg.recipe.yaml
2024-06-11 23:34:47 +10:00

57 lines
1.9 KiB
YAML

---
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"
- Processor: Copier
Arguments:
source_path: "/Applications/Mist.app"
destination_path: "%RECIPE_CACHE_DIR%/payload/Applications/Mist.app"
- 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"
- 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%/%NAME%-%version%-unsigned.pkg"