autopkg / foigus-recipes

21 stars 31 forks source link

Maxon Cinema 4D S26 #106

Closed svinusje closed 1 year ago

svinusje commented 2 years ago

Hi,

if i fill in s26 as the major version i get the message that on "https://www.maxon.net/en/downloads/cinema-4d-s26-downloads" : No match found on URL: https://www.maxon.net/_nuxt/static/1665664419/en/downloads/cinema-4d-s26-downloads/payload.js Failed.

suggestions?

foigus commented 2 years ago

Maxon changed the URL format between the S## and year-based (e.g. 2023) releases. The (first!) URLTextSearcher regex for each:

Year-based: https:\\u002F\\u002Fmx-app-blob-prod\.maxon\.net\\u002Fmx-package-production\\u002Finstaller\\u002Fmacos\\u002Fmaxon\\u002Fcinema4d\\u002Freleases\\u002F%MAJOR_VERSION%[\d\.]+\\u002FCinema4D_%MAJOR_VERSION%_%MAJOR_VERSION%[\d\.]+_Mac\.dmg S##-based: https:\\u002F\\u002Fmx-app-blob-prod\.maxon\.net\\u002Fmx-package-production\\u002Finstaller\\u002Fmacos\\u002Fmaxon\\u002Fcinema4d\\u002Freleases\\u002F%MAJOR_VERSION%[\d\.]+\\u002FCinema4D_S%MAJOR_VERSION%_%MAJOR_VERSION%[\d\.]+_Mac\.dmg

Due to this change (the removal of the "S" in both the URLs and application name), it's not easily possible (PR's accepted!) to support both the non-current and current subscription-based releases via MAJOR_VERSION (and I really planned MAJOR_VERSION to be able to support future releases rather than past ones.). In addition, since there are three calls to URLTextSearcher between the .download and .pkg recipes, this isn't a situation where it's easy to provide the Cinema 4D installation package via -d /path/to/the.dmg since it's nearly guaranteed that one of the URLTextSearcher processors will fail.

Best I can suggest is reverting my repo to this commit where the S## releases were working up until a few weeks ago when I introduced support for Cinema 4D 2023.

foigus commented 2 years ago

Or potentially you could:

Given that Maxon probably doesn't consider Cinema 4D S26 to be current/developed, I'd not anticipate too many new releases past today. If you could get the recipe to run once successfully you probably would be OK.