Skip to content

Commit

Permalink
Reduce redundant Cache files
Browse files Browse the repository at this point in the history
  • Loading branch information
David Pirie committed Nov 17, 2024
1 parent 761351c commit e3f60f6
Show file tree
Hide file tree
Showing 32 changed files with 156 additions and 150 deletions.
2 changes: 1 addition & 1 deletion AdobeReader/AdobeReader.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
2 changes: 1 addition & 1 deletion Avid/AvidProTools.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
22 changes: 11 additions & 11 deletions Avid/AvidProTools.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,38 +17,38 @@ Process:

- Processor: CodeSignatureVerifier
Arguments:
input_path: "%PKG%/*.pkg"
input_path: '%PKG%/*.pkg'
expected_authority_names:
- "Developer ID Installer: Avid Technology Inc (4UYUA773XD)"
- 'Developer ID Installer: Avid Technology Inc (4UYUA773XD)'
- Developer ID Certification Authority
- Apple Root CA

- Processor: PkgCopier
Arguments:
source_pkg: "%PKG%/*.pkg"
pkg_path: "%RECIPE_CACHE_DIR%/%NAME%.pkg"
source_pkg: '%PKG%/*.pkg'
pkg_path: '%RECIPE_CACHE_DIR%/%NAME%.pkg'

- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: "%pkg_path%"
flat_pkg_path: '%pkg_path%'
skip_payload: False
destination_path: "%RECIPE_CACHE_DIR%/unpack"
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: True

- Processor: PkgPayloadUnpacker
Arguments:
pkg_payload_path: "%RECIPE_CACHE_DIR%/unpack/Pro Tools Application.pkg/Payload"
destination_path: "%RECIPE_CACHE_DIR%/unpack-payload"
pkg_payload_path: '%RECIPE_CACHE_DIR%/unpack/Pro Tools Application.pkg/Payload'
destination_path: '%RECIPE_CACHE_DIR%/unpack-payload'
purge_destination: True

- Processor: PlistReader
Arguments:
info_path: "%RECIPE_CACHE_DIR%/unpack-payload/Applications/Pro Tools.app"
info_path: '%RECIPE_CACHE_DIR%/unpack-payload/Applications/Pro Tools.app'
plist_keys:
CFBundleShortVersionString: version

- Processor: PathDeleter
Arguments:
path_list:
- "%RECIPE_CACHE_DIR%/unpack"
- "%RECIPE_CACHE_DIR%/unpack-payload"
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/unpack-payload'
2 changes: 1 addition & 1 deletion Avid/AvidProToolsPlugin.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
14 changes: 7 additions & 7 deletions Avid/AvidProToolsPlugin.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,17 @@ Process:

- Processor: CodeSignatureVerifier
Arguments:
input_path: "%PKG%/*.pkg"
input_path: '%PKG%/*.pkg'
expected_authority_names:
- "Developer ID Installer: Avid Technology Inc (4UYUA773XD)"
- 'Developer ID Installer: Avid Technology Inc (4UYUA773XD)'
- Developer ID Certification Authority
- Apple Root CA

- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: "%PKG%/*.pkg"
flat_pkg_path: '%PKG%/*.pkg'
skip_payload: False
destination_path: "%RECIPE_CACHE_DIR%/unpack"
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: True

- Processor: FileFinder
Expand All @@ -43,10 +43,10 @@ Process:

- Processor: PkgCopier
Arguments:
source_pkg: "%PKG%/*.pkg"
pkg_path: "%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg"
source_pkg: '%PKG%/*.pkg'
pkg_path: '%RECIPE_CACHE_DIR%/%NAME%-%version%.pkg'

- Processor: PathDeleter
Arguments:
path_list:
- "%RECIPE_CACHE_DIR%/unpack"
- '%RECIPE_CACHE_DIR%/unpack'
2 changes: 1 addition & 1 deletion Avid/AvidSibelius.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
48 changes: 24 additions & 24 deletions Avid/AvidSibelius.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,47 +30,47 @@ Process:

- Processor: CodeSignatureVerifier
Arguments:
input_path: "%PKG%/*.pkg"
input_path: '%PKG%/*.pkg'
expected_authority_names:
- "Developer ID Installer: Avid Technology Inc (4UYUA773XD)"
- 'Developer ID Installer: Avid Technology Inc (4UYUA773XD)'
- Developer ID Certification Authority
- Apple Root CA

- Processor: PkgRootCreator
Arguments:
pkgdirs:
payload: "0775"
scripts: "0775"
pkgroot: "%RECIPE_CACHE_DIR%/%NAME%"
payload: '0775'
scripts: '0775'
pkgroot: '%RECIPE_CACHE_DIR%/%NAME%'

- Processor: PkgCopier
Arguments:
source_pkg: "%PKG%/*.pkg"
pkg_path: "%RECIPE_CACHE_DIR%/%NAME%/scripts/%NAME%.pkg"
source_pkg: '%PKG%/*.pkg'
pkg_path: '%RECIPE_CACHE_DIR%/%NAME%/scripts/%NAME%.pkg'

- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: "%pkg_path%"
flat_pkg_path: '%pkg_path%'
skip_payload: False
destination_path: "%RECIPE_CACHE_DIR%/unpack"
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: True

- Processor: PkgPayloadUnpacker
Arguments:
pkg_payload_path: "%RECIPE_CACHE_DIR%/unpack/Sibelius.pkg/Payload"
destination_path: "%RECIPE_CACHE_DIR%/unpack-payload"
pkg_payload_path: '%RECIPE_CACHE_DIR%/unpack/Sibelius.pkg/Payload'
destination_path: '%RECIPE_CACHE_DIR%/unpack-payload'
purge_destination: True

- Processor: PlistReader
Arguments:
info_path: "%RECIPE_CACHE_DIR%/unpack-payload/Applications/Sibelius.app"
info_path: '%RECIPE_CACHE_DIR%/unpack-payload/Applications/Sibelius.app'
plist_keys:
CFBundleShortVersionString: version

- Processor: com.github.grahampugh.recipes.commonprocessors/ChoicesXMLGenerator
Arguments:
choices_pkg_path: "%pkg_path%"
choices_xml_dest: "%RECIPE_CACHE_DIR%/%NAME%/scripts/choices.xml"
choices_pkg_path: '%pkg_path%'
choices_xml_dest: '%RECIPE_CACHE_DIR%/%NAME%/scripts/choices.xml'

- Processor: FileCreator
Arguments:
Expand All @@ -87,23 +87,23 @@ Process:
/usr/sbin/installer -applyChoiceChangesXML "${ROOT_DIR}/choices.xml" -pkg "${ROOT_DIR}/%NAME%.pkg" -target /
exit $?
file_mode: "0755"
file_path: "%RECIPE_CACHE_DIR%/%NAME%/scripts/postinstall"
file_mode: '0755'
file_path: '%RECIPE_CACHE_DIR%/%NAME%/scripts/postinstall'

- Processor: PkgCreator
Arguments:
pkg_request:
chown: []
id: "%PKG_ID%"
id: '%PKG_ID%'
options: purge_ds_store
pkgname: "%NAME%-%version%"
pkgroot: "%RECIPE_CACHE_DIR%/%NAME%/payload"
scripts: "%RECIPE_CACHE_DIR%/%NAME%/scripts"
version: "%version%"
pkgname: '%NAME%-%version%'
pkgroot: '%RECIPE_CACHE_DIR%/%NAME%/payload'
scripts: '%RECIPE_CACHE_DIR%/%NAME%/scripts'
version: '%version%'

- Processor: PathDeleter
Arguments:
path_list:
- "%RECIPE_CACHE_DIR%/%NAME%"
- "%RECIPE_CACHE_DIR%/unpack"
- "%RECIPE_CACHE_DIR%/unpack-payload"
- '%RECIPE_CACHE_DIR%/%NAME%'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/unpack-payload'
2 changes: 1 addition & 1 deletion Blackmagic/BlackmagicATEMSwitchers.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
2 changes: 1 addition & 1 deletion Blackmagic/BlackmagicATEMSwitchers.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unzip'
2 changes: 1 addition & 1 deletion Blackmagic/BlackmagicConverters.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
2 changes: 1 addition & 1 deletion Blackmagic/BlackmagicConverters.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unzip'
5 changes: 3 additions & 2 deletions Blackmagic/BlackmagicDaVinciResolve.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Input:
PRODUCT_NAME_PATTERN: '^DaVinci Resolve (?P<version>%PRODUCT_MAJOR_VERSION%(\.\d+)*)( Update)*$'
JAMF_CATEGORY: Photo & Video
JAMF_PKG_NAME: '%NAME%'
JAMF_PKG_INFO: This software installs the free version of DaVinci Resolve %PRODUCT_MAJOR_VERSION%
JAMF_PKG_INFO:
This software installs the free version of DaVinci Resolve %PRODUCT_MAJOR_VERSION%
which features up to 10x faster editing performance, Fairlight audio post production,
dozens of new filters and effects and more. Technical support is available via the
Blackmagic Design community forums.
Expand Down Expand Up @@ -58,4 +59,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
8 changes: 4 additions & 4 deletions Blackmagic/BlackmagicDaVinciResolve.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Process:
- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: '%found_filename%/*.pkg'
destination_path: "%RECIPE_CACHE_DIR%/unpack"
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: True

- Processor: PkgPayloadUnpacker
Expand All @@ -63,6 +63,6 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
5 changes: 3 additions & 2 deletions Blackmagic/BlackmagicDesktopVideo.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ Input:
PRODUCT_NAME_PATTERN: '^Desktop Video (?P<version>%PRODUCT_MAJOR_VERSION%(\.\d+)*)*$'
JAMF_CATEGORY: Photo & Video
JAMF_PKG_NAME: '%NAME%'
JAMF_PKG_INFO: Blackmagic Desktop Video includes everything you need to set up your DeckLink,
JAMF_PKG_INFO:
Blackmagic Desktop Video includes everything you need to set up your DeckLink,
Multibridge, UltraStudio, Intensity and H.264 Pro Recorder for any task in your facility.
JAMF_PKG_NOTES: Uploaded by AutoPkg
JAMF_PKG_OS_REQUIREMENTS: ''
Expand Down Expand Up @@ -56,4 +57,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
8 changes: 4 additions & 4 deletions Blackmagic/BlackmagicDesktopVideo.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Process:
- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: '%found_filename%/*.pkg'
destination_path: "%RECIPE_CACHE_DIR%/unpack"
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: True

- Processor: PkgPayloadUnpacker
Expand All @@ -61,6 +61,6 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
2 changes: 1 addition & 1 deletion Blackmagic/BlackmagicWebPresenter.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
8 changes: 4 additions & 4 deletions Blackmagic/BlackmagicWebPresenter.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Process:
- Processor: FlatPkgUnpacker
Arguments:
flat_pkg_path: '%found_filename%/*.pkg'
destination_path: "%RECIPE_CACHE_DIR%/unpack"
destination_path: '%RECIPE_CACHE_DIR%/unpack'
purge_destination: True

- Processor: PkgPayloadUnpacker
Expand All @@ -59,6 +59,6 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/unzip'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
2 changes: 1 addition & 1 deletion Blender/Blender.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
6 changes: 3 additions & 3 deletions EIZO/ColorNavigator7.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/repack'
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/repack'
2 changes: 1 addition & 1 deletion GoogleChrome/GoogleChrome.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
2 changes: 1 addition & 1 deletion MicrosoftEdge/MicrosoftEdge.jamf-upload.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,4 @@ Process:
- Processor: PathDeleter
Arguments:
path_list:
- '%pkg_path%'
- '%pkg_path%'
8 changes: 4 additions & 4 deletions MicrosoftOneDrive/MicrosoftOneDrive.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@ Process:
Arguments:
flat_pkg_path: '%pathname%'
destination_path: '%RECIPE_CACHE_DIR%/unpack'

- Processor: PkgPayloadUnpacker
Arguments:
pkg_payload_path: '%RECIPE_CACHE_DIR%/unpack/%SOFTWARETITLE%.pkg/Payload'
destination_path: '%RECIPE_CACHE_DIR%/payload'

- Processor: PlistReader
Arguments:
info_path: '%RECIPE_CACHE_DIR%/payload/%SOFTWARETITLE%.app'
plist_keys:
CFBundleShortVersionString: bundle_short_version
CFBundleVersion: bundle_version

- Processor: MicrosoftOneDriveVersioner
Arguments:
bundle_short_version: '%bundle_short_version%'
Expand All @@ -45,4 +45,4 @@ Process:
Arguments:
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/payload'
- '%RECIPE_CACHE_DIR%/payload'
Loading

0 comments on commit e3f60f6

Please sign in to comment.