Skip to content

Commit

Permalink
GitHub Recipe Updates
Browse files Browse the repository at this point in the history
- Indentation of install recipe
- Create "payload" dir in the case of no pkg being created to stop PathDeleter errors
- Fix spacing of sign recipe
  • Loading branch information
smithjw committed Nov 24, 2021
1 parent 3aed676 commit 76399a7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
2 changes: 1 addition & 1 deletion GitHub/GitHub_Desktop.install.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Input:
SOFTWARE_TITLE: GitHub_Desktop

Process:
- Processor: Installer
- Processor: Installer
25 changes: 15 additions & 10 deletions GitHub/GitHub_Desktop.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@ MinimumVersion: '2.3'
Input:
NAME: GitHub Desktop
SOFTWARE_TITLE: GitHub_Desktop

Process:
- Processor: AppPkgCreator
Arguments:
app_path: '%RECIPE_CACHE_DIR%/unpack/%NAME%.app'
pkg_path: '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%.pkg'
- Processor: PkgRootCreator
Arguments:
pkgdirs: {}
pkgroot: '%RECIPE_CACHE_DIR%/payload'

- Processor: AppPkgCreator
Arguments:
app_path: '%RECIPE_CACHE_DIR%/unpack/%NAME%.app'
pkg_path: '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%.pkg'

- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
17 changes: 8 additions & 9 deletions GitHub/GitHub_Desktop.sign.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ Input:
SIGNING_CERTIFICATE: Override_This_Value

Process:
- Processor: com.github.rtrouton.SharedProcessors/PkgSigner
Arguments:
pkg_path: '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%.pkg'
signing_cert: '%SIGNING_CERTIFICATE%'

- Processor: com.github.rtrouton.SharedProcessors/PkgSigner
Arguments:
pkg_path: '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%.pkg'
signing_cert: '%SIGNING_CERTIFICATE%'

- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%-unsigned.pkg'
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/%SOFTWARE_TITLE%-%ARCHITECTURE%-%version%-unsigned.pkg'

0 comments on commit 76399a7

Please sign in to comment.