autopkg / macvfx-recipes

AutoPkg recipes
2 stars 3 forks source link

New Download URL for Lucid #12

Open Stette opened 4 months ago

Stette commented 4 months ago

Our override failed due to outdated URL in the Lucid.download.recipe.

Seems Lucid went from hosting the installer themselves to now using Cloudfront.

Old URL in recipe: https://www.lucidlink.com/download/latest/osx/stable/ New URL when checking just now: https://d3il9duqikhdqy.cloudfront.net/latest/osx/lucid-2.6.5463.pkg

markkenny commented 4 months ago

Got a working version as yaml.

Input:
  NAME: Lucid
  SEARCH_URL: https://www.lucidlink.com/download
  SEARCH_PATTERN: lucid-[0-9\.]*.pkg
  DOWNLOAD_URL: https://d3il9duqikhdqy.cloudfront.net/latest/osx

Process:
  - Processor: URLTextSearcher
    Arguments:
      re_pattern: "%SEARCH_PATTERN%"
      url: "%SEARCH_URL%"

  - Processor: URLDownloader
    Arguments:
      url: "%DOWNLOAD_URL%/%match%"
      filename: "%NAME%.pkg"