Open ggeerraalldd opened 11 months ago
I'm inclined to use the "latest.dmg" URL instead of scraping, as fewer URL calls and fewer regexes are easier.
On Wed, Oct 18, 2023 at 7:39 AM Gerald Mcdonald @.***> wrote:
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:
https:\/\/mac\.desktop\.evernote\.com\/builds\/Evernote-\d+\.\d+\.\d+-mac-ddl-stage-\d+-[a-fA-F0-9]+\.dmg 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.
— Reply to this email directly, view it on GitHub https://github.com/autopkg/recipes/issues/470, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJFTX5JQEORIJB3VJM3R43X77S2NAVCNFSM6AAAAAA6FUS62SVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE2DSOJSGI3TQNI . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Nick McSpadden @.***
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:
. 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.