recipes icon indicating copy to clipboard operation
recipes copied to clipboard

Evernote.download.recipe -- Download URL has changed (again)

Open ggeerraalldd opened this issue 9 months ago • 1 comments

Getting "No match found on URL: https://cdn1.evernote.com/boron/mac/public/latest-mac.yml" when running Evernote.munki recipe. The current download recipe fails when regex fails to match new URL format in https://cdn1.evernote.com/boron/mac/public/latest-mac.yml:

files:
  - url: https://mac.desktop.evernote.com/builds/Evernote-10.64.3-mac-ddl-stage-20231016152524-a3022232078b217e119d024768c2396287db456c.zip
    sha512: TA3L89OrytZvKKVc1vVFDVQKhlUkAVpsPzqBRgPuwTfhNswXEz5N1jnyNYksglR4vcQCTp1yahUSnHXN1TNd7g==
    size: 275578732
  - url: https://mac.desktop.evernote.com/builds/Evernote-10.64.3-mac-ddl-stage-20231016152524-a3022232078b217e119d024768c2396287db456c.dmg
    sha512: Y86LVHkYYQYitY7Zzvr5KucTsBF2/Ul/9ho5O5p295aJ7DLOTlj1P1SiYk7IIKV9WKtBHSfyJgiY8DINDGD5lg==
    size: 284482041
path: https://mac.desktop.evernote.com/builds/Evernote-10.64.3-mac-ddl-stage-20231016152524-a3022232078b217e119d024768c2396287db456c.zip
sha512: TA3L89OrytZvKKVc1vVFDVQKhlUkAVpsPzqBRgPuwTfhNswXEz5N1jnyNYksglR4vcQCTp1yahUSnHXN1TNd7g==
releaseDate: '2023-10-18T08:23:41.000Z'
stagingPercentage: 25

. The regex to get a direct link from the yml could be updated: <string>https:\/\/mac\.desktop\.evernote\.com\/builds\/Evernote-\d+\.\d+\.\d+-mac-ddl-stage-\d+-[a-fA-F0-9]+\.dmg</string>

Or there is an updated link on the https://evernote.com/downloads page to get the latest release that could be used instead of scraping the yml: https://mac.desktop.evernote.com/builds/Evernote-latest.dmg

I've tested both options successfully -- editing the URLTextSearcher pattern, and removing that process and using the "Evernote-latest" URL in URLDownloader. Both methods have been used in the download recipe in the past, but I'm not sure which will be most reliable in the long run.

ggeerraalldd avatar Oct 18 '23 14:10 ggeerraalldd