autopkg / foigus-recipes

21 stars 31 forks source link

Update CaptureOne.download.recipe #120

Closed paul-cossey closed 1 year ago

paul-cossey commented 1 year ago

Hi, @foigus

This PR updates the DOWNLOADURLUUID

Output from a successful run

autopkg run -vv /Users/paul/Documents/GitHub/AutoPkg\ Repos/foigus-recipes/PhaseOne/CaptureOne.download.recipe 
Processing /Users/paul/Documents/GitHub/AutoPkg Repos/foigus-recipes/PhaseOne/CaptureOne.download.recipe...
WARNING: /Users/paul/Documents/GitHub/AutoPkg Repos/foigus-recipes/PhaseOne/CaptureOne.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
URLTextSearcher
{'Input': {'re_pattern': '<AvailableVersion>(16(.[0-9]+(\\.[0-9]+)+))</AvailableVersion',
           'result_output_var_name': 'truncated_version',
           'url': 'https://cormws.phaseone.com/corm.asmx/GetNewSoftwareVersion?Platform=Mac&Version=8.0'}}
URLTextSearcher: Found matching text (truncated_version): 16.2.1.13
{'Output': {'truncated_version': '16.2.1.13'}}
URLDownloader
{'Input': {'filename': 'CaptureOne.dmg',
           'url': 'https://downloads.phaseone.com/e569c884-1ffe-4e8a-9514-437beec374e7/International/CaptureOne23.Mac.16.2.1.13.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: Thu, 25 May 2023 11:27:41 GMT
URLDownloader: Storing new ETag header: "f84a63a5b9e71d7bdb83496f5c359cfb:1685014061.602128"
URLDownloader: Downloaded /Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg
{'Output': {'download_changed': True,
            'etag': '"f84a63a5b9e71d7bdb83496f5c359cfb:1685014061.602128"',
            'last_modified': 'Thu, 25 May 2023 11:27:41 GMT',
            'pathname': '/Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg/Capture '
                         'One 23.app',
           'requirement': 'anchor apple generic and identifier '
                          '"com.captureone.captureone16" 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] = "5WTDB5F65L")'}}
CodeSignatureVerifier: Mounted disk image /Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.05ctTC/Capture One 23.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.05ctTC/Capture One 23.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.05ctTC/Capture One 23.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
Receipt written to /Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/receipts/CaptureOne.download-receipt-20230525-165930.plist

The following new items were downloaded:
    Download Path                                                                                     
    -------------                                                                                     
    /Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg
foigus commented 1 year ago

Thanks much!

Amazing that this recipe was broken in a completely different fashion a few days ago, but today was fixed with the UUID change.