Skip to content

Instantly share code, notes, and snippets.

@pyther
Created June 12, 2023 18:42
Show Gist options
  • Select an option

  • Save pyther/0717b5696f13c5526fd506030062300c to your computer and use it in GitHub Desktop.

Select an option

Save pyther/0717b5696f13c5526fd506030062300c to your computer and use it in GitHub Desktop.

Revisions

  1. pyther created this gist Jun 12, 2023.
    36 changes: 36 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    ---
    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%