Update ownCloudDesktopClient.munki.recipe
Update ownCloudDesktopClient.munki.recipe

Modified recipe to create a installs array from the .app on disk, and tidy up afters.

```
Processing /Users/ben/Git/other-recipes/gerardkok-recipes/ownCloud/ownCloudDesktopClient.munki.recipe...
WARNING: /Users/ben/Git/other-recipes/gerardkok-recipes/ownCloud/ownCloudDesktopClient.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': 'href=\\"(?P<url>https://download.owncloud.com/desktop/ownCloud/stable/[0-9\\.]+/mac/ownCloud-(?P<version>[0-9\\.]+).pkg)\\"',
           'url': 'https://owncloud.com/desktop-app/'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (url): https://download.owncloud.com/desktop/ownCloud/stable/2.8.2.4246/mac/ownCloud-2.8.2.4246.pkg
URLTextSearcher: Found matching text (version): 2.8.2.4246
URLTextSearcher: Found matching text (match): https://download.owncloud.com/desktop/ownCloud/stable/2.8.2.4246/mac/ownCloud-2.8.2.4246.pkg
{'Output': {'match': 'https://download.owncloud.com/desktop/ownCloud/stable/2.8.2.4246/mac/ownCloud-2.8.2.4246.pkg',
            'url': 'https://download.owncloud.com/desktop/ownCloud/stable/2.8.2.4246/mac/ownCloud-2.8.2.4246.pkg',
            'version': '2.8.2.4246'}}
URLDownloader
{'Input': {'filename': 'ownCloudDesktopClient.pkg',
           'url': 'https://download.owncloud.com/desktop/ownCloud/stable/2.8.2.4246/mac/ownCloud-2.8.2.4246.pkg'}}
URLDownloader: No value supplied for prefetch_filename, setting default value of: False
URLDownloader: No value supplied for CHECK_FILESIZE_ONLY, setting default value of: False
URLDownloader: Item at URL is unchanged.
URLDownloader: Using existing /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/downloads/ownCloudDesktopClient.pkg
{'Output': {'pathname': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/downloads/ownCloudDesktopClient.pkg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: ownCloud GmbH '
                                        '(4AP2STM4H5)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/downloads/ownCloudDesktopClient.pkg'}}
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "ownCloudDesktopClient.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2021-05-28 14:23:17 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: ownCloud GmbH (4AP2STM4H5)
CodeSignatureVerifier:        Expires: 2024-01-29 10:35:51 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            AD F3 16 BF DC 33 D2 87 AC B7 33 82 C1 67 C3 28 B4 27 70 0E BA 22
CodeSignatureVerifier:            D4 10 DB C5 CE 16 83 C2 3B F3
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     2. Developer ID Certification Authority
CodeSignatureVerifier:        Expires: 2027-02-01 22:12:15 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            7A FC 9D 01 A6 2F 03 A2 DE 96 37 93 6D 4A FE 68 09 0D 2D E1 8D 03
CodeSignatureVerifier:            F2 9C 88 CF B0 B1 BA 63 58 7F
CodeSignatureVerifier:        ------------------------------------------------------------------------
CodeSignatureVerifier:     3. Apple Root CA
CodeSignatureVerifier:        Expires: 2035-02-09 21:40:36 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            B0 B1 73 0E CB C7 FF 45 05 14 2C 49 F1 29 5E 6E DA 6B CA ED 7E 2C
CodeSignatureVerifier:            68 C5 BE 91 B5 A1 10 01 F0 24
CodeSignatureVerifier:
CodeSignatureVerifier: Signature is valid
CodeSignatureVerifier: Authority name chain is valid
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/unpack',
           'flat_pkg_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/downloads/ownCloudDesktopClient.pkg'}}
FlatPkgUnpacker: Unpacked /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/downloads/ownCloudDesktopClient.pkg to /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/unpack
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/',
           'pkg_payload_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/unpack/ownCloud.pkg/Payload',
           'purge_destination': True}}
PkgPayloadUnpacker: Unpacked /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/unpack/ownCloud.pkg/Payload to /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/
{'Output': {}}
MunkiInstallsItemsCreator
{'Input': {'faux_root': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/',
           'installs_item_paths': ['/Applications/owncloud.app']}}
MunkiInstallsItemsCreator: Created installs item for /Applications/owncloud.app
{'Output': {'additional_pkginfo': {'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                                 'CFBundleShortVersionString': '2.8.2 '
                                                                               '(build '
                                                                               '4246)',
                                                 'CFBundleVersion': '2.8.2.4246',
                                                 'path': '/Applications/owncloud.app',
                                                 'type': 'application',
                                                 'version_comparison_key': 'CFBundleShortVersionString'}]}}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                                'CFBundleShortVersionString': '2.8.2 '
                                                                              '(build '
                                                                              '4246)',
                                                'CFBundleVersion': '2.8.2.4246',
                                                'path': '/Applications/owncloud.app',
                                                'type': 'application',
                                                'version_comparison_key': 'CFBundleShortVersionString'}]},
           'pkginfo': {'blocking_applications': ['owncloud'],
                       'catalogs': ['testing'],
                       'category': 'Utilities',
                       'description': 'Synchronise your ownCloud with your '
                                      'computer using our desktop clients. '
                                      'Select one or more directories on your '
                                      'local machine and always have access to '
                                      'your latest files wherever you are.',
                       'developer': 'ownCloud.org',
                       'display_name': 'ownCloud Desktop Client',
                       'name': 'ownCloudDesktopClient',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient', 'CFBundleShortVersionString': '2.8.2 (build 4246)', 'CFBundleVersion': '2.8.2.4246', 'path': '/Applications/owncloud.app', 'type': 'application', 'version_comparison_key': 'CFBundleShortVersionString'}]} into pkginfo
{'Output': {'pkginfo': {'blocking_applications': ['owncloud'],
                        'catalogs': ['testing'],
                        'category': 'Utilities',
                        'description': 'Synchronise your ownCloud with your '
                                       'computer using our desktop clients. '
                                       'Select one or more directories on your '
                                       'local machine and always have access '
                                       'to your latest files wherever you are.',
                        'developer': 'ownCloud.org',
                        'display_name': 'ownCloud Desktop Client',
                        'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                      'CFBundleShortVersionString': '2.8.2 '
                                                                    '(build '
                                                                    '4246)',
                                      'CFBundleVersion': '2.8.2.4246',
                                      'path': '/Applications/owncloud.app',
                                      'type': 'application',
                                      'version_comparison_key': 'CFBundleShortVersionString'}],
                        'name': 'ownCloudDesktopClient',
                        'unattended_install': True}}}
PlistReader
{'Input': {'info_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/Applications/owncloud.app/Contents/Info.plist',
           'plist_keys': {'CFBundleVersion': 'version'}}}
PlistReader: Reading: /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/Applications/owncloud.app/Contents/Info.plist
PlistReader: Assigning value of '2.8.2.4246' to output variable 'version'
{'Output': {'plist_reader_output_variables': {'version': '2.8.2.4246'}}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'version': '2.8.2.4246'},
           'pkginfo': {'blocking_applications': ['owncloud'],
                       'catalogs': ['testing'],
                       'category': 'Utilities',
                       'description': 'Synchronise your ownCloud with your '
                                      'computer using our desktop clients. '
                                      'Select one or more directories on your '
                                      'local machine and always have access to '
                                      'your latest files wherever you are.',
                       'developer': 'ownCloud.org',
                       'display_name': 'ownCloud Desktop Client',
                       'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                     'CFBundleShortVersionString': '2.8.2 '
                                                                   '(build '
                                                                   '4246)',
                                     'CFBundleVersion': '2.8.2.4246',
                                     'path': '/Applications/owncloud.app',
                                     'type': 'application',
                                     'version_comparison_key': 'CFBundleShortVersionString'}],
                       'name': 'ownCloudDesktopClient',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'version': '2.8.2.4246'} into pkginfo
{'Output': {'pkginfo': {'blocking_applications': ['owncloud'],
                        'catalogs': ['testing'],
                        'category': 'Utilities',
                        'description': 'Synchronise your ownCloud with your '
                                       'computer using our desktop clients. '
                                       'Select one or more directories on your '
                                       'local machine and always have access '
                                       'to your latest files wherever you are.',
                        'developer': 'ownCloud.org',
                        'display_name': 'ownCloud Desktop Client',
                        'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                      'CFBundleShortVersionString': '2.8.2 '
                                                                    '(build '
                                                                    '4246)',
                                      'CFBundleVersion': '2.8.2.4246',
                                      'path': '/Applications/owncloud.app',
                                      'type': 'application',
                                      'version_comparison_key': 'CFBundleShortVersionString'}],
                        'name': 'ownCloudDesktopClient',
                        'unattended_install': True,
                        'version': '2.8.2.4246'}}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/downloads/ownCloudDesktopClient.pkg',
           'pkginfo': {'blocking_applications': ['owncloud'],
                       'catalogs': ['testing'],
                       'category': 'Utilities',
                       'description': 'Synchronise your ownCloud with your '
                                      'computer using our desktop clients. '
                                      'Select one or more directories on your '
                                      'local machine and always have access to '
                                      'your latest files wherever you are.',
                       'developer': 'ownCloud.org',
                       'display_name': 'ownCloud Desktop Client',
                       'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                     'CFBundleShortVersionString': '2.8.2 '
                                                                   '(build '
                                                                   '4246)',
                                     'CFBundleVersion': '2.8.2.4246',
                                     'path': '/Applications/owncloud.app',
                                     'type': 'application',
                                     'version_comparison_key': 'CFBundleShortVersionString'}],
                       'name': 'ownCloudDesktopClient',
                       'unattended_install': True,
                       'version': '2.8.2.4246'},
           'repo_subdirectory': 'apps',
           'version_comparison_key': 'CFBundleVersion'}}
MunkiImporter: No value supplied for MUNKI_REPO_PLUGIN, setting default value of: FileRepo
MunkiImporter: No value supplied for MUNKILIB_DIR, setting default value of: /usr/local/munki
MunkiImporter: No value supplied for force_munki_repo_lib, setting default value of: False
MunkiImporter: Using repo lib: AutoPkgLib
MunkiImporter:         plugin: FileRepo
MunkiImporter:           repo: /Users/Shared/munki_repo
MunkiImporter: Copied pkginfo to: /Users/Shared/munki_repo/pkgsinfo/apps/ownCloudDesktopClient-2.8.2.4246.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/ownCloudDesktopClient-2.8.2.4246.pkg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'ownCloudDesktopClient',
                                                       'pkg_repo_path': 'apps/ownCloudDesktopClient-2.8.2.4246.pkg',
                                                       'pkginfo_path': 'apps/ownCloudDesktopClient-2.8.2.4246.plist',
                                                       'version': '2.8.2.4246'},
                                              'report_fields': ['name',
                                                                'version',
                                                                'catalogs',
                                                                'pkginfo_path',
                                                                'pkg_repo_path',
                                                                'icon_repo_path'],
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'imported into '
                                                              'Munki:'},
            'munki_info': {'_metadata': {'created_by': 'ben',
                                         'creation_date': datetime.datetime(2021, 7, 21, 22, 16, 13),
                                         'munki_version': '5.5.0.4360',
                                         'os_version': '10.15.7'},
                           'autoremove': False,
                           'blocking_applications': ['owncloud'],
                           'catalogs': ['testing'],
                           'category': 'Utilities',
                           'description': 'Synchronise your ownCloud with your '
                                          'computer using our desktop clients. '
                                          'Select one or more directories on '
                                          'your local machine and always have '
                                          'access to your latest files '
                                          'wherever you are.',
                           'developer': 'ownCloud.org',
                           'display_name': 'ownCloud Desktop Client',
                           'installed_size': 61140,
                           'installer_item_hash': '50131244a9ab16ae49bf0633d56ecfe5b858b9c5cd3718645b9c77d869f875d0',
                           'installer_item_location': 'apps/ownCloudDesktopClient-2.8.2.4246.pkg',
                           'installer_item_size': 23772,
                           'installs': [{'CFBundleIdentifier': 'com.owncloud.desktopclient',
                                         'CFBundleShortVersionString': '2.8.2 '
                                                                       '(build '
                                                                       '4246)',
                                         'CFBundleVersion': '2.8.2.4246',
                                         'path': '/Applications/owncloud.app',
                                         'type': 'application',
                                         'version_comparison_key': 'CFBundleVersion'}],
                           'minimum_os_version': '10.5.0',
                           'name': 'ownCloudDesktopClient',
                           'receipts': [{'installed_size': 61140,
                                         'packageid': 'com.ownCloud.client',
                                         'version': '2.8.2.4246'}],
                           'unattended_install': True,
                           'uninstall_method': 'removepackages',
                           'uninstallable': True,
                           'version': '2.8.2.4246'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/ownCloudDesktopClient-2.8.2.4246.pkg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/ownCloudDesktopClient-2.8.2.4246.plist'}}
PathDeleter
{'Input': {'path_list': ['/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/',
                         '/Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/unpack/']}}
PathDeleter: Deleted /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/pkgroot/
PathDeleter: Deleted /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/unpack/
{'Output': {}}
Receipt written to /Users/ben/Library/AutoPkg/Cache/com.github.gerardkok.munki.ownCloudDesktopClient/receipts/ownCloudDesktopClient.munki-receipt-20210721-231613.plist

The following new items were imported into Munki:
    Name                   Version     Catalogs  Pkginfo Path                                 Pkg Repo Path                              Icon Repo Path
    ----                   -------     --------  ------------                                 -------------                              --------------
    ownCloudDesktopClient  2.8.2.4246  testing   apps/ownCloudDesktopClient-2.8.2.4246.plist  apps/ownCloudDesktopClient-2.8.2.4246.pkg
```

autopkg/gerardkok-recipes