autopkg / hansen-m-recipes

My recipes for Autopkg - https://github.com/autopkg
27 stars 50 forks source link

Update MEGA Recipe #174

Closed oliverweinm closed 4 years ago

oliverweinm commented 4 years ago

This pull request updates the current MEGA recipe by adding a new URLProvider processor script written in Python. The current link in the recipe is hardcoded and only downloads a certain version 7.x.x The new URLProvider however always downloads the newest MEGA X version that is published on the Update History page (https://www.megasoftware.net/history) by:

  1. scraping the topmost version number with a regex and then
  2. formatting a download URL string which is returned as the 'ur'l variable later used in Mega.download.recipe the download URL is of the format: https://www.megasoftware.net/do_force_download/MEGAX_x.x.x_installer.pkg

Changes have been made to the .download.recipe to accept this input and tests have been successful in downloading MEGAX v.10.7.0 and v.10.8.0

rustymyers commented 4 years ago

LGTM! Thanks!