Skip to content

Commit

Permalink
DisplayLink recipe updates:
Browse files Browse the repository at this point in the history
- Moved SOFTWARE_TITLE to top of Input
- Replaced FlatPkgUnpacker with XarExtractSingleFile
- Replaced com.facebook.autopkg.shared/PackageInfoVersioner with com.github.mlbz521.SharedProcessors/XPathParser
- Now returning the correct version of DisplayLink Manager
  • Loading branch information
smithjw committed Jan 14, 2022
1 parent bae3c0a commit 9dfedb2
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion DisplayLink/DisplayLink_Manager.jamf.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ MinimumVersion: '2.3'

Input:
NAME: DisplayLink Manager
SOFTWARE_TITLE: DisplayLink_Manager
CATEGORY: Utilities
GROUP_NAME: '%NAME%-update-smart'
GROUP_TEMPLATE: SmartGroup-update-smart.xml
POLICY_CATEGORY: Testing
POLICY_TEMPLATE: PolicyTemplate.xml
POLICY_NAME: 'Install Latest %NAME%'
POLICY_RUN_COMMAND: 'chown -R "$(stat -f%Su /dev/console):staff" "/Applications/%NAME%.app" && echo "Corrected permissions for %NAME%."'
SOFTWARE_TITLE: DisplayLink_Manager
SELF_SERVICE_DISPLAY_NAME: 'Install Latest %NAME%'
SELF_SERVICE_DESCRIPTION: DisplayLink Manager is a new way to enable your DisplayLink dock, adapter or monitor on macOS platforms. It's an application that combines our latest driver with features that streamline the setup of mutliple displays up to 4K.
SELF_SERVICE_ICON: '%SOFTWARE_TITLE%.png'
Expand Down
2 changes: 1 addition & 1 deletion DisplayLink/DisplayLink_Manager.jss.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ MinimumVersion: '2.3'

Input:
NAME: DisplayLink Manager
SOFTWARE_TITLE: DisplayLink_Manager
CATEGORY: Utilities
GROUP_NAME: '%NAME%-update-smart'
GROUP_TEMPLATE: SmartGroupTemplate.xml
OS_REQUIREMENTS: ''
POLICY_CATEGORY: Testing
POLICY_TEMPLATE: PolicyTemplate.xml
SOFTWARE_TITLE: DisplayLink_Manager
SELF_SERVICE_DESCRIPTION: DisplayLink Manager is a new way to enable your DisplayLink dock, adapter or monitor on macOS platforms. It's an application that combines our latest driver with features that streamline the setup of mutliple displays up to 4K.
SELF_SERVICE_ICON: '%SOFTWARE_TITLE%.png'

Expand Down
18 changes: 9 additions & 9 deletions DisplayLink/DisplayLink_Manager.pkg.recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ Input:
DOWNLOAD_URL: https://www.displaylink.com/downloads

Process:
- Processor: FlatPkgUnpacker
- Processor: com.github.mlbz521.SharedProcessors/XarExtractSingleFile
Arguments:
destination_path: '%RECIPE_CACHE_DIR%/unpack'
flat_pkg_path: '%pathname%'
skip_payload: true
archive_path: '%pathname%'
file_to_extract: Distribution

- Processor: com.facebook.autopkg.shared/PackageInfoVersioner
- Processor: com.github.mlbz521.SharedProcessors/XPathParser
Arguments:
package_info_path: '%RECIPE_CACHE_DIR%/unpack/DisplayLinkManagerApp.pkg/PackageInfo'

- Processor: com.github.homebysix.VersionSplitter/VersionSplitter
xml_file: '%extracted_file%'
xpath: './/bundle[@id="com.displaylink.DisplayLinkUserAgent"][@CFBundleShortVersionString]'
attribute_one: CFBundleShortVersionString
return_variable_attribute_one: version

- Processor: PkgCopier
Arguments:
Expand All @@ -29,4 +29,4 @@ Process:
Arguments:
fail_deleter_silently: True
path_list:
- '%RECIPE_CACHE_DIR%/unpack'
- '%RECIPE_CACHE_DIR%/extractedfile'

0 comments on commit 9dfedb2

Please sign in to comment.