autopkg / peshay-recipes

Autopkg recipes with FileWave integration
5 stars 22 forks source link

Update draw.io.download.recipe #57

Closed macmule closed 3 years ago

macmule commented 3 years ago

Updated regex to download intel dmg and not arm.

macmule commented 3 years ago

Example output:

Processing /Users/ben/Git/other-recipes/peshay-recipes/drawio/draw.io.download.recipe...
WARNING: /Users/ben/Git/other-recipes/peshay-recipes/drawio/draw.io.download.recipe is missing trust info and FAIL_RECIPES_WITHOUT_TRUST_INFO is not set. Proceeding...
GitHubReleasesInfoProvider
{'Input': {'asset_regex': '(draw.io-x64-.*?\\.dmg)$',
           'github_repo': 'jgraph/drawio-desktop'}}
GitHubReleasesInfoProvider: No value supplied for CURL_PATH, setting default value of: /usr/bin/curl
GitHubReleasesInfoProvider: No value supplied for GITHUB_URL, setting default value of: https://api.github.com
GitHubReleasesInfoProvider: Matched regex '(draw.io-x64-.*?\.dmg)$' among asset(s): draw.io-14.9.6-windows-installer.exe, draw.io-14.9.6-windows-no-installer.exe, draw.io-arm64-14.9.6.dmg, draw.io-arm64-14.9.6.dmg.blockmap, draw.io-arm64-14.9.6.zip, draw.io-arm64-14.9.6.zip.blockmap, draw.io-ia32-14.9.6-windows-32bit-installer.exe, draw.io-ia32-14.9.6-windows-32bit-no-installer.exe, draw.io-ia32-14.9.6.exe, draw.io-ia32-14.9.6.exe.blockmap, draw.io-x64-14.9.6.appx, draw.io-x64-14.9.6.dmg, draw.io-x64-14.9.6.dmg.blockmap, draw.io-x64-14.9.6.exe, draw.io-x64-14.9.6.exe.blockmap, draw.io-x64-14.9.6.zip, draw.io-x64-14.9.6.zip.blockmap, drawio-amd64-14.9.6.deb, drawio-x86_64-14.9.6.AppImage, drawio-x86_64-14.9.6.rpm, latest-linux.yml, latest-mac.yml, latest.yml
GitHubReleasesInfoProvider: Selected asset 'draw.io-x64-14.9.6.dmg' from release '14.9.6'
{'Output': {'release_notes': '## Releases Notes for 14.9.6\r\n'
                             '[Windows '
                             'Installer](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/draw.io-14.9.6-windows-installer.exe)\r\n'
                             '[Windows No '
                             'Installer](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/draw.io-14.9.6-windows-no-installer.exe)\r\n'
                             '[macOS - '
                             'Intel](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/draw.io-x64-14.9.6.dmg)\r\n'
                             '[macOS - '
                             'ARM](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/draw.io-arm64-14.9.6.dmg)\r\n'
                             'Linux - '
                             '[deb](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/drawio-amd64-14.9.6.deb), '
                             '[snap](https://snapcraft.io/drawio), '
                             '[AppImage](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/drawio-x86_64-14.9.6.AppImage) '
                             'or '
                             '[rpm](https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/drawio-x86_64-14.9.6.rpm)\r\n'
                             '[Google Chrome '
                             'OS](https://chrome.google.com/webstore/detail/drawio-desktop/pebppomjfocnoigkeepgbmcifnnlndla/reviews)\r\n'
                             '\r\n'
                             'Windows intel x32 releases are marked -ia32-\r\n'
                             '\r\n'
                             '**ChangeLog:**\r\n'
                             '\r\n'
                             '- Updates to [diagrams.net core '
                             '14.9.6](https://github.com/jgraph/drawio/blob/v14.9.6/ChangeLog). '
                             'All changes from 14.6.14 to 14.9.6, inclusive, '
                             'are added in this build.',
            'url': 'https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/draw.io-x64-14.9.6.dmg',
            'version': '14.9.6'}}
URLDownloader
{'Input': {'url': 'https://github.com/jgraph/drawio-desktop/releases/download/v14.9.6/draw.io-x64-14.9.6.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: Mon, 16 Aug 2021 09:35:27 GMT
URLDownloader: Storing new ETag header: "be38dfca4b13ea82a3cd37f0bf0348fa"
URLDownloader: Downloaded /Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/downloads/draw.io-x64-14.9.6.dmg
{'Output': {'download_changed': True,
            'etag': '"be38dfca4b13ea82a3cd37f0bf0348fa"',
            'last_modified': 'Mon, 16 Aug 2021 09:35:27 GMT',
            'pathname': '/Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/downloads/draw.io-x64-14.9.6.dmg',
            'url_downloader_summary_result': {'data': {'download_path': '/Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/downloads/draw.io-x64-14.9.6.dmg'},
                                              'summary_text': 'The following '
                                                              'new items were '
                                                              'downloaded:'}}}
EndOfCheckPhase
{'Input': {}}
{'Output': {}}
CodeSignatureVerifier
{'Input': {'input_path': '/Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/downloads/draw.io-x64-14.9.6.dmg/draw.io.app',
           'requirement': 'identifier "com.jgraph.drawio.desktop" 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] = '
                          'UZEUFB4N53'}}
CodeSignatureVerifier: Mounted disk image /Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/downloads/draw.io-x64-14.9.6.dmg
CodeSignatureVerifier: Verifying code signature...
CodeSignatureVerifier: Deep verification enabled...
CodeSignatureVerifier: Strict verification not defined. Using codesign defaults...
CodeSignatureVerifier: /private/tmp/dmg.5mWqeM/draw.io.app: valid on disk
CodeSignatureVerifier: /private/tmp/dmg.5mWqeM/draw.io.app: satisfies its Designated Requirement
CodeSignatureVerifier: /private/tmp/dmg.5mWqeM/draw.io.app: explicit requirement satisfied
CodeSignatureVerifier: Signature is valid
{'Output': {}}
Receipt written to /Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/receipts/draw.io.download-receipt-20210825-154946.plist

The following new items were downloaded:
    Download Path                                                                                         
    -------------                                                                                         
    /Users/ben/Library/AutoPkg/Cache/com.github.peshay.download.draw.io/downloads/draw.io-x64-14.9.6.dmg