autopkg / hjuutilainen-recipes

Recipes for AutoPkg
MIT License
49 stars 74 forks source link

Add TextExpander7 recipes #205

Closed apizz closed 2 years ago

apizz commented 2 years ago

v7 appears to distribute the app in a DMG now, albeit no other differences are observed.

Successful munki recipe run output:

autopkg run -vv ~/Documents/git/hjuutilainen-recipes/SmileOnMyMac/TextExpander7.munki.recipe
Processing /Users/autopkgadmin/Documents/git/hjuutilainen-recipes/SmileOnMyMac/TextExpander7.munki.recipe...
WARNING: /Users/autopkgadmin/Documents/git/hjuutilainen-recipes/SmileOnMyMac/TextExpander7.munki.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLDownloader
{'Input': {'filename': 'TextExpander7.dmg',
           'url': 'https://textexpander.com/cgi-bin/redirect.pl?cmd=download&platform=osx'}}
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/autopkgadmin/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.TextExpander7/downloads/TextExpander7.dmg
{'Output': {'pathname': '/Users/autopkgadmin/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.TextExpander7/downloads/TextExpander7.dmg'}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.TextExpander7/downloads/TextExpander7.dmg/TextExpander.app',
           'requirement': 'anchor apple generic and identifier '
                          '"com.smileonmymac.textexpander" and (certificate '
                          'leaf[field.1.2.840.113635.100.6.1.9] /* exists */ '
                          'or 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] = "7PKJ6G4DXL")',
           'strict_verification': True}}
CodeSignatureVerifier: Mounted disk image /Users/autopkgadmin/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.TextExpander7/downloads/TextExpander7.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification enabled...
CodeSignatureVerifier: /private/tmp/dmg.Nw6z3h/TextExpander.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.Nw6z3h/TextExpander.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.Nw6z3h/TextExpander.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
MunkiImporter
{'Input': {'MUNKI_REPO': '/Users/Shared/munki_repo',
           'pkg_path': '/Users/autopkgadmin/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.TextExpander7/downloads/TextExpander7.dmg',
           'pkginfo': {'catalogs': ['testing'],
                       'category': 'Utilities',
                       'description': 'Imagine never typing the same email '
                                      'address, chunk of code, brand message, '
                                      'directions or data more than once. '
                                      'Store them in a snippet—a keyboard '
                                      'shortcut you create. Use them for '
                                      'yourself, share them with your team, '
                                      'update across all your devices.',
                       'developer': 'SmileOnMyMac',
                       'display_name': 'TextExpander 7',
                       'name': 'TextExpander7',
                       'unattended_install': True},
           'repo_subdirectory': 'apps'}}
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/TextExpander7-7.0.2.plist
MunkiImporter:            pkg to: /Users/Shared/munki_repo/pkgs/apps/TextExpander7-7.0.2.dmg
{'Output': {'munki_importer_summary_result': {'data': {'catalogs': 'testing',
                                                       'icon_repo_path': '',
                                                       'name': 'TextExpander7',
                                                       'pkg_repo_path': 'apps/TextExpander7-7.0.2.dmg',
                                                       'pkginfo_path': 'apps/TextExpander7-7.0.2.plist',
                                                       'version': '7.0.2'},
                                              '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': 'autopkgadmin',
                                         'creation_date': datetime.datetime(2021, 11, 26, 7, 1, 40),
                                         'munki_version': '5.4.0.4348',
                                         'os_version': '11.6.1'},
                           'autoremove': False,
                           'catalogs': ['testing'],
                           'category': 'Utilities',
                           'description': 'Imagine never typing the same email '
                                          'address, chunk of code, brand '
                                          'message, directions or data more '
                                          'than once. Store them in a '
                                          'snippet—a keyboard shortcut you '
                                          'create. Use them for yourself, '
                                          'share them with your team, update '
                                          'across all your devices.',
                           'developer': 'SmileOnMyMac',
                           'display_name': 'TextExpander 7',
                           'installer_item_hash': '0cdafa12184e52a04808778c5a0b6494bdfa0dbba7899968c7e958752092bf1c',
                           'installer_item_location': 'apps/TextExpander7-7.0.2.dmg',
                           'installer_item_size': 38067,
                           'installer_type': 'copy_from_dmg',
                           'installs': [{'CFBundleIdentifier': 'com.smileonmymac.textexpander',
                                         'CFBundleName': 'TextExpander',
                                         'CFBundleShortVersionString': '7.0.2',
                                         'CFBundleVersion': '702.2',
                                         'minosversion': '10.14.0',
                                         'path': '/Applications/TextExpander.app',
                                         'type': 'application',
                                         'version_comparison_key': 'CFBundleShortVersionString'}],
                           'items_to_copy': [{'destination_path': '/Applications',
                                              'source_item': 'TextExpander.app'}],
                           'minimum_os_version': '10.14.0',
                           'name': 'TextExpander7',
                           'unattended_install': True,
                           'uninstall_method': 'remove_copied_items',
                           'uninstallable': True,
                           'version': '7.0.2'},
            'munki_repo_changed': True,
            'pkg_repo_path': '/Users/Shared/munki_repo/pkgs/apps/TextExpander7-7.0.2.dmg',
            'pkginfo_repo_path': '/Users/Shared/munki_repo/pkgsinfo/apps/TextExpander7-7.0.2.plist'}}
Receipt written to /Users/autopkgadmin/Library/AutoPkg/Cache/io.github.hjuutilainen.munki.TextExpander7/receipts/TextExpander7.munki-receipt-20211126-020140.plist

The following new items were imported into Munki:
    Name           Version  Catalogs  Pkginfo Path                    Pkg Repo Path                 Icon Repo Path  
    ----           -------  --------  ------------                    -------------                 --------------  
    TextExpander7  7.0.2    testing   apps/TextExpander7-7.0.2.plist  apps/TextExpander7-7.0.2.dmg
hjuutilainen commented 2 years ago

Thank you!