autopkg / joshua-d-miller-recipes

My recipes for autopkg https://github.com/autopkg
13 stars 46 forks source link

Update Zotero.download.recipe #128

Closed paul-cossey closed 1 year ago

paul-cossey commented 2 years ago

Hi, @joshua-d-miller

This PR has an updated re_pattern so that it grabs

Output from a successful -vv autopkg run:

autopkg run -vv /Users/paul/Documents/GitHub/joshua-d-miller-recipes/Zotero/Zotero.download.recipe 
Processing /Users/paul/Documents/GitHub/joshua-d-miller-recipes/Zotero/Zotero.download.recipe...
WARNING: /Users/paul/Documents/GitHub/joshua-d-miller-recipes/Zotero/Zotero.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': 'Changes in ([0-9]+(\\.[0-9]+)+) \\([a-zA-Z]+ [0-9]+, '
                         '[0-9]+\\)',
           'url': 'https://www.zotero.org/support/changelog'}}
URLTextSearcher: No value supplied for result_output_var_name, setting default value of: match
URLTextSearcher: Found matching text (match): 6.0.14
{'Output': {'match': '6.0.14'}}
URLDownloader
{'Input': {'filename': 'Zotero.dmg',
           'url': 'https://www.zotero.org/download/client/dl?channel=release&platform=mac&version=6.0.14'}}
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: Thu, 29 Sep 2022 02:23:52 GMT
URLDownloader: Storing new ETag header: "2f36439701bbbe9b6a3ac3de56501c44-9"
URLDownloader: Downloaded /Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/downloads/Zotero.dmg
{'Output': {'download_changed': True,
            'etag': '"2f36439701bbbe9b6a3ac3de56501c44-9"',
            'last_modified': 'Thu, 29 Sep 2022 02:23:52 GMT',
            'pathname': '/Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/downloads/Zotero.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/downloads/Zotero.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/downloads/Zotero.dmg/Zotero.app',
           'requirement': 'identifier "org.zotero.zotero" 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] = '
                          '"8LAYR367YV"'}}
CodeSignatureVerifier: Mounted disk image /Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/downloads/Zotero.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.NcArEs/Zotero.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.NcArEs/Zotero.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.NcArEs/Zotero.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
Receipt written to /Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/receipts/Zotero.download-receipt-20220930-144007.plist

The following new items were downloaded:
    Download Path                                                                                      
    -------------                                                                                      
    /Users/paul/Library/AutoPkg/Cache/com.github.joshua-d-miller.download.zotero/downloads/Zotero.dmg

Thanks! Paul

joshua-d-miller commented 1 year ago

Changes look good. I will merge these