autopkg / smithjw-recipes

Smithjw's AutoPkg recipes
Apache License 2.0
14 stars 16 forks source link

Deprecate Airtame download & pkg recipes and update munki recipe #5

Closed apizz closed 4 years ago

apizz commented 4 years ago

Closes #4

Verbose output from successful run is below. My PRs haven't been merged yet, which is why version 3.1.1 is being pulled instead of the latest.

(base) AP-MBP:~ admin$ autopkg run ~/Documents/GitHub/smithjw-recipes/Airtame/Airtame.munki.recipe -vv
Processing /Users/admin/Documents/GitHub/smithjw-recipes/Airtame/Airtame.munki.recipe...
WARNING: /Users/admin/Documents/GitHub/smithjw-recipes/Airtame/Airtame.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'Airtame.dmg',
           'url': 'https://downloads-cdn.airtame.com/application/ga/osx_x64/releases/airtame-application-3.1.1.dmg'}}
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: Storing new Last-Modified header: Mon, 08 Jan 2018 19:21:52 GMT
URLDownloader: Downloaded /Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg
{'Output': {'download_changed': True,
            'last_modified': 'Mon, 08 Jan 2018 19:21:52 GMT',
            'pathname': '/Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg/Airtame.app',
           'requirement': 'identifier "com.airtame.airtame-application" and '
                          'anchor apple generic and certificate '
                          '1[field.1.2.840.113635.100.6.2.6] /* exists */ and '
                          'certificate leaf[field.1.2.840.113635.100.6.1.13] '
                          '/* exists */ and certificate leaf[subject.OU] = '
                          '"4TPSP88HN2"'}}
CodeSignatureVerifier: Mounted disk image /Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.qTWwkI/Airtame.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.qTWwkI/Airtame.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.qTWwkI/Airtame.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
Versioner
{'Input': {'input_plist_path': '/Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg/Airtame.app/Contents/Info.plist',
           'plist_version_key': 'CFBundleVersion'}}
Versioner: Mounted disk image /Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg
Versioner: Found version 3.1.1 in file /private/tmp/dmg.hzElvh/Airtame.app/Contents/Info.plist
{'Output': {'version': '3.1.1'}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Software',
                       'description': 'Present wirelessly from any device, '
                                      'introduce digital signage and '
                                      'revolutionize your work environment '
                                      'with Airtame.',
                       'developer': 'Airtame Inc.',
                       'display_name': 'Airtame',
                       'name': 'Airtame',
                       'unattended_install': True},
           'repo_subdirectory': 'apps/Airtame'}}
MunkiImporter: Copied pkginfo to /Users/Shared/munki_repo/pkgsinfo/apps/Airtame/Airtame-3.1.1.plist
MunkiImporter: Copied pkg to /Users/Shared/munki_repo/pkgs/apps/Airtame/Airtame-3.1.1.dmg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'name': 'Airtame',
                                                       'pkg_repo_path': 'apps/Airtame/Airtame-3.1.1.dmg',
                                                       'pkginfo_path': 'apps/Airtame/Airtame-3.1.1.plist',
                                                       'version': '3.1.1'},
                                              'report_fields': ['name',
                                                                'version',
                                                                'catalogs',
                                                                'pkginfo_path',
                                                                'pkg_repo_path'],
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'imported into '
                                                              'Munki:'},
            'munki_info': {'_metadata': {'created_by': 'admin',
                                         'creation_date': datetime.datetime(2020, 8, 9, 22, 33, 34),
                                         'munki_version': '5.0.0.4034',
                                         'os_version': '10.14.6'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'Software',
                           'description': 'Present wirelessly from any device, '
                                          'introduce digital signage and '
                                          'revolutionize your work environment '
                                          'with Airtame.',
                           'developer': 'Airtame Inc.',
                           'display_name': 'Airtame',
                           'installer_item_hash': '4947ae4186d62d1c0587e536ddecf078de187c518edf7f744e1b418939847de5',
                           'installer_item_location': 'apps/Airtame/Airtame-3.1.1.dmg',
                           'installer_item_size': 65163,
                           'installer_type': 'copy_from_dmg',
                           'installs': [{'CFBundleIdentifier': 'com.airtame.airtame-application',
                                         'CFBundleName': 'Airtame',
                                         'CFBundleVersion': '3.1.1',
                                         'minosversion': '10.8.0',
                                         'path': '/Applications/Airtame.app',
                                         'type': 'application',
                                         'version_comparison_key': 'CFBundleVersion'}],
                           'items_to_copy': [{'destination_path': '/Applications',
                                              'source_item': 'Airtame.app'}],
                           'minimum_os_version': '10.8.0',
                           'name': 'Airtame',
                           'unattended_install': True,
                           'uninstall_method': 'remove_copied_items',
                           'uninstallable': True,
                           'version': '3.1.1'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/Airtame/Airtame-3.1.1.dmg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/Airtame/Airtame-3.1.1.plist'}}
Receipt written to /Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/receipts/Airtame.munki-receipt-20200809-183335.plist

The following new items were downloaded:
    Download Path                                                                                   
    -------------                                                                                   
    /Users/admin/Library/AutoPkg/Cache/com.github.smithjw.Airtame.munki/downloads/Airtame.dmg  

The following new items were imported into Munki:
    Name     Version  Catalogs  Pkginfo Path                      Pkg Repo Path                   
    ----     -------  --------  ------------                      -------------                   
    Airtame  3.1.1    testing   apps/Airtame/Airtame-3.1.1.plist  apps/Airtame/Airtame-3.1.1.dmg