Skip to content

Instantly share code, notes, and snippets.

@pyther
Created June 12, 2023 18:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pyther/0717b5696f13c5526fd506030062300c to your computer and use it in GitHub Desktop.
Save pyther/0717b5696f13c5526fd506030062300c to your computer and use it in GitHub Desktop.
Slack.pkg.recipe.yaml
---
Description: Downloads the latest Slack disk image and builds a package
Identifier: org.example.autopkg.pkg.slack
Input:
NAME: Slack
PKG_ID: com.tinyspeck.slackmacgap
MinimumVersion: "2.3"
ParentRecipe: org.example.autopkg.download.slack
Process:
- Processor: PkgRootCreator
Arguments:
pkgroot: "%RECIPE_CACHE_DIR%/%NAME%"
pkgdirs:
Applications: "0755"
- Processor: Copier
Arguments:
source_path: "%pathname%/Slack.app"
destination_path: "%pkgroot%/Applications/Slack.app"
- Processor: AppDmgVersioner
Arguments:
dmg_path: "%pathname%"
- Processor: PkgCreator
Arguments:
pkg_request:
pkgname: "%NAME%-%version%"
pkgdir: "%RECIPE_CACHE_DIR%"
id: "%PKG_ID%"
options: purge_ds_store
chown:
- path: Applications
user: root
group: admin%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment