autopkg / foigus-recipes

21 stars 31 forks source link

Update for CaptureOne (again!) #115

Closed paul-cossey closed 1 year ago

paul-cossey commented 1 year ago

Hi, @foigus

I've updated the regex to account for additional digits in the version number.

Output from a successful -vv 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.1.1.16
{'Output': {'truncated_version': '16.1.1.16'}}
URLDownloader
{'Input': {'filename': 'CaptureOne.dmg',
           'url': 'https://downloads.phaseone.com/fe066656-a98c-45bf-999b-b8e4a7da1b2c/International/CaptureOne23.Mac.16.1.1.16.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: Wed, 01 Mar 2023 09:03:29 GMT
URLDownloader: Storing new ETag header: "1b420fcf3be2a8199c63bcf4e7ff7ed5:1677661409.675281"
URLDownloader: Downloaded /Users/paul/Library/AutoPkg/Cache/com.github.foigus.download.CaptureOne/downloads/CaptureOne.dmg
{'Output': {'download_changed': True,
            'etag': '"1b420fcf3be2a8199c63bcf4e7ff7ed5:1677661409.675281"',
            'last_modified': 'Wed, 01 Mar 2023 09:03:29 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.Kd4Ge0/Capture One 23.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.Kd4Ge0/Capture One 23.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.Kd4Ge0/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-20230302-122705.plist

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