Closed TonyPaco closed 1 year ago
Just curious before I merge this that even though we are grabbing the zip URL and then using said URL to download the DMG it downloads a valid DMG?
Yes. It gets the dmg.
It's really kind of a hack because the previous pattern would grab the entire yaml which was multiple links and would choke curl.
I looked for some kind of anchor in the middle of the yaml to better grab just one URL string. What I found was that "npath:" and I went with that because it looked consistent through all yaml entries on the page.
Unless there's a reason to maintain a separate recipe, there's already an Evernote.download (and Evernote.munki) recipe at https://github.com/autopkg/recipes/tree/master/Evernote that are both being kept up-to date.
Change re_pattern to get the zip url from the yaml being searched and use it to download the dmg.