autopkg / recipes

Recipes for AutoPkg
231 stars 206 forks source link

adapt recipes to newest version of Google Earth #356

Closed TK5-Tim closed 4 years ago

TK5-Tim commented 4 years ago

Adapting the download link and Code Signature verification to the newest versions of Google Earth. Also adapted the Strings in FlatPKGUnpacker and Versioner.

nmcspadden commented 4 years ago

Looks good but please provide the output of autopkg run -vv.

TK5-Tim commented 4 years ago

Output for autopkg run -vv GoogleEarth.munki.recipe with GoogleEarth.download.recipe as parent recipe:

Processing GoogleEarth.munki.recipe...
WARNING: GoogleEarth.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'GoogleEarth.dmg',
           'url': 'https://dl.google.com/dl/earth/client/advanced/current/googleearthpromac-intel.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: Item at URL is unchanged.
URLDownloader: Using existing /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg
{'Output': {'pathname': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Google LLC '
                                        '(EQHXZ8M8AV)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg/Install '
                         'Google Earth*.pkg'}}
CodeSignatureVerifier: Mounted disk image /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg
CodeSignatureVerifier: Using path '/private/tmp/dmg.XY9Zv3/Install Google Earth Pro 7.3.3.7786.pkg' matched from globbed '/private/tmp/dmg.XY9Zv3/Install Google Earth*.pkg'.
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "Install Google Earth Pro 7.3.3.7786.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2020-07-21 19:38:45 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Google LLC (EQHXZ8M8AV)
CodeSignatureVerifier:        Expires: 2024-05-15 21:33:57 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            72 24 40 36 F2 AE CD 3C 04 60 18 BF 72 C7 31 7F 91 61 BF 88 98 2C 
CodeSignatureVerifier:            F9 B5 C6 18 23 54 8E 82 66 40
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': {}}
PkgRootCreator
{'Input': {'pkgdirs': {'Applications': '0775',
                       'Library': '0775',
                       'Library/Internet Plug-Ins': '0775'},
           'pkgroot': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root'}}
PkgRootCreator: Created /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root
PkgRootCreator: Creating Applications
PkgRootCreator: Created /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Applications
PkgRootCreator: Creating Library
PkgRootCreator: Created /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Library
PkgRootCreator: Creating Library/Internet Plug-Ins
PkgRootCreator: Created /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Library/Internet Plug-Ins
{'Output': {}}
FlatPkgUnpacker
{'Input': {'destination_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/expanded',
           'flat_pkg_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg/Install '
                            'Google Earth*.pkg'}}
FlatPkgUnpacker: Mounted disk image /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.H6iqmT/Install Google Earth Pro 7.3.3.7786.pkg to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/expanded
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Applications',
           'pkg_payload_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/expanded/Google_Earth_Pro.pkg/Payload'}}
PkgPayloadUnpacker: Unpacked /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/expanded/Google_Earth_Pro.pkg/Payload to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Applications
{'Output': {}}
MunkiInstallsItemsCreator
{'Input': {'faux_root': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root',
           'installs_item_paths': ['/Applications/Google Earth.app'],
           'version_comparison_key': 'CFBundleVersion'}}
{'Output': {'additional_pkginfo': {'installs': []}}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'installs': []},
           'pkginfo': {'catalogs': ['testing'],
                       'description': 'Take a virtual journey to any location '
                                      'in the world. Explore 3D buildings, '
                                      'imagery, and terrain. Find cities, '
                                      'places and local businesses.',
                       'display_name': 'Google Earth',
                       'name': 'GoogleEarth',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'installs': []} into pkginfo
{'Output': {'pkginfo': {'catalogs': ['testing'],
                        'description': 'Take a virtual journey to any location '
                                       'in the world. Explore 3D buildings, '
                                       'imagery, and terrain. Find cities, '
                                       'places and local businesses.',
                        'display_name': 'Google Earth',
                        'installs': [],
                        'name': 'GoogleEarth',
                        'unattended_install': True}}}
Versioner
{'Input': {'input_plist_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Applications/Google '
                               'Earth Pro.app/Contents/Info.plist',
           'plist_version_key': 'CFBundleVersion'}}
Versioner: Found version 7.3.3.7786 in file /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/unpack/root/Applications/Google Earth Pro.app/Contents/Info.plist
{'Output': {'version': '7.3.3.7786'}}
MunkiPkginfoMerger
{'Input': {'additional_pkginfo': {'version': '7.3.3.7786'},
           'pkginfo': {'catalogs': ['testing'],
                       'description': 'Take a virtual journey to any location '
                                      'in the world. Explore 3D buildings, '
                                      'imagery, and terrain. Find cities, '
                                      'places and local businesses.',
                       'display_name': 'Google Earth',
                       'installs': [],
                       'name': 'GoogleEarth',
                       'unattended_install': True}}}
MunkiPkginfoMerger: Merged {'version': '7.3.3.7786'} into pkginfo
{'Output': {'pkginfo': {'catalogs': ['testing'],
                        'description': 'Take a virtual journey to any location '
                                       'in the world. Explore 3D buildings, '
                                       'imagery, and terrain. Find cities, '
                                       'places and local businesses.',
                        'display_name': 'Google Earth',
                        'installs': [],
                        'name': 'GoogleEarth',
                        'unattended_install': True,
                        'version': '7.3.3.7786'}}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Volumes/munki_repo_test',
           'pkg_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/downloads/GoogleEarth.dmg',
           'pkginfo': {'catalogs': ['testing'],
                       'description': 'Take a virtual journey to any location '
                                      'in the world. Explore 3D buildings, '
                                      'imagery, and terrain. Find cities, '
                                      'places and local businesses.',
                       'display_name': 'Google Earth',
                       'installs': [],
                       'name': 'GoogleEarth',
                       'unattended_install': True,
                       'version': '7.3.3.7786'},
           '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: /Volumes/munki_repo_test
MunkiImporter: Copied pkginfo to: /Volumes/munki_repo_test/pkgsinfo/apps/GoogleEarth-7.3.3.7786.plist
MunkiImporter:            pkg to: /Volumes/munki_repo_test/pkgs/apps/GoogleEarth-7.3.3.7786.dmg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'GoogleEarth',
                                                       'pkg_repo_path': 'apps/GoogleEarth-7.3.3.7786.dmg',
                                                       'pkginfo_path': 'apps/GoogleEarth-7.3.3.7786.plist',
                                                       'version': '7.3.3.7786'},
                                              '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': 'keltim01',
                                         'creation_date': datetime.datetime(2020, 9, 8, 7, 23, 22),
                                         'munki_version': '5.0.1.4059',
                                         'os_version': '10.15.6'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'description': 'Take a virtual journey to any '
                                          'location in the world. Explore 3D '
                                          'buildings, imagery, and terrain. '
                                          'Find cities, places and local '
                                          'businesses.',
                           'display_name': 'Google Earth',
                           'installed_size': 198632,
                           'installer_item_hash': '89e6ae146d27ab61f2293c570a33894df3786b5589cbc0f20d691afb766c28bc',
                           'installer_item_location': 'apps/GoogleEarth-7.3.3.7786.dmg',
                           'installer_item_size': 76597,
                           'installs': [],
                           'minimum_os_version': '10.5.0',
                           'name': 'GoogleEarth',
                           'receipts': [{'installed_size': 0,
                                         'packageid': 'com.google.pkg.Keystone',
                                         'version': '1.3.14.131'},
                                        {'installed_size': 198632,
                                         'packageid': 'com.Google.GoogleEarthPro',
                                         'version': '7.3.0'}],
                           'unattended_install': True,
                           'uninstall_method': 'removepackages',
                           'uninstallable': True,
                           'version': '7.3.3.7786'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Volumes/munki_repo_test/pkgs/apps/GoogleEarth-7.3.3.7786.dmg',
            'pkginfo_repo_path': '/Volumes/munki_repo_test/pkgsinfo/apps/GoogleEarth-7.3.3.7786.plist'}}
Receipt written to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.munki.google-earth/receipts/GoogleEarth.munki-receipt-20200908-092349.plist

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

Output für autopkg run -vv GoogleEarth.pkg.recipe with GoogleEarth.download.recipe as parent recipe:

Processing GoogleEarth.pkg.recipe...
WARNING: GoogleEarth.pkg.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'GoogleEarth.dmg',
           'url': 'https://dl.google.com/dl/earth/client/advanced/current/googleearthpromac-intel.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: Item at URL is unchanged.
URLDownloader: Using existing /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg
{'Output': {'pathname': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'expected_authority_names': ['Developer ID Installer: Google LLC '
                                        '(EQHXZ8M8AV)',
                                        'Developer ID Certification Authority',
                                        'Apple Root CA'],
           'input_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg/Install '
                         'Google Earth*.pkg'}}
CodeSignatureVerifier: Mounted disk image /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg
CodeSignatureVerifier: Using path '/private/tmp/dmg.70shN1/Install Google Earth Pro 7.3.3.7786.pkg' matched from globbed '/private/tmp/dmg.70shN1/Install Google Earth*.pkg'.
CodeSignatureVerifier: Verifying installer package signature...
CodeSignatureVerifier: Package "Install Google Earth Pro 7.3.3.7786.pkg":
CodeSignatureVerifier:    Status: signed by a developer certificate issued by Apple for distribution
CodeSignatureVerifier:    Signed with a trusted timestamp on: 2020-07-21 19:38:45 +0000
CodeSignatureVerifier:    Certificate Chain:
CodeSignatureVerifier:     1. Developer ID Installer: Google LLC (EQHXZ8M8AV)
CodeSignatureVerifier:        Expires: 2024-05-15 21:33:57 +0000
CodeSignatureVerifier:        SHA256 Fingerprint:
CodeSignatureVerifier:            72 24 40 36 F2 AE CD 3C 04 60 18 BF 72 C7 31 7F 91 61 BF 88 98 2C 
CodeSignatureVerifier:            F9 B5 C6 18 23 54 8E 82 66 40
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/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/expanded',
           'flat_pkg_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg/Install '
                            'Google Earth*.pkg'}}
FlatPkgUnpacker: Mounted disk image /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg
FlatPkgUnpacker: Unpacked /private/tmp/dmg.PmJvmj/Install Google Earth Pro 7.3.3.7786.pkg to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/expanded
{'Output': {}}
PkgPayloadUnpacker
{'Input': {'destination_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/unpack',
           'pkg_payload_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/expanded/Google_Earth_Pro.pkg/Payload'}}
PkgPayloadUnpacker: Unpacked /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/expanded/Google_Earth_Pro.pkg/Payload to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/unpack
{'Output': {}}
Versioner
{'Input': {'input_plist_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/unpack/Google '
                               'Earth Pro.app/Contents/Info.plist',
           'plist_version_key': 'CFBundleVersion'}}
Versioner: Found version 7.3.3.7786 in file /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/unpack/Google Earth Pro.app/Contents/Info.plist
{'Output': {'version': '7.3.3.7786'}}
PkgCopier
{'Input': {'pkg_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/GoogleEarth-7.3.3.7786.pkg',
           'source_pkg': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg/Install '
                         'Google Earth*.pkg'}}
PkgCopier: Mounted disk image /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/downloads/GoogleEarth.dmg
PkgCopier: Using path '/private/tmp/dmg.R88K2v/Install Google Earth Pro 7.3.3.7786.pkg' matched from globbed '/private/tmp/dmg.R88K2v/Install Google Earth*.pkg'.
PkgCopier: Copied /private/tmp/dmg.R88K2v/Install Google Earth Pro 7.3.3.7786.pkg to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/GoogleEarth-7.3.3.7786.pkg
{'Output': {'pkg_copier_summary_result': {'data': {'pkg_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/GoogleEarth-7.3.3.7786.pkg'},
                                          'summary_text': 'The following '
                                                          'packages were '
                                                          'copied:'},
            'pkg_path': '/Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/GoogleEarth-7.3.3.7786.pkg'}}
Receipt written to /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/receipts/GoogleEarth.pkg-receipt-20200908-092749.plist

The following packages were copied:
    Pkg Path                                                                                              
    --------                                                                                              
    /Users/keltim01/Library/AutoPkg/Cache/com.github.autopkg.pkg.google-earth/GoogleEarth-7.3.3.7786.pkg