From d97129f3f5ca00ec87b3905b30387e0e01347d52 Mon Sep 17 00:00:00 2001 From: P-M Lejon <15982689+pmex@users.noreply.github.com> Date: Fri, 12 Sep 2025 09:00:26 +0200 Subject: [PATCH] Improve Cinema 4D 2025 appNewVersion and downloadURL --- fragments/labels/cinema4d2025.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fragments/labels/cinema4d2025.sh b/fragments/labels/cinema4d2025.sh index 883f56c10..650559c2c 100644 --- a/fragments/labels/cinema4d2025.sh +++ b/fragments/labels/cinema4d2025.sh @@ -6,9 +6,8 @@ cinema4d2025) } productDownloadsPage=$(curl -fsL https://www.maxon.net/en/downloads | grep -oE '[^"]*downloads/cinema-4d-2025[^"]*' | head -1) downloadURL=$(curl -fsL $productDownloadsPage | grep -oE 'https://[^"]*\.dmg' | head -1) - appNewVersion=$(sed -E 's/.*_([0-9.]*)_Mac\.dmg/\1/g' <<< $downloadURL) + appNewVersion=$(grep -Eo "/2025.([[0-9]+).([[0-9]+)/" <<< $downloadURL | sed 's|/||g') targetDir="/Applications/Maxon Cinema 4D 2025" - downloadURL="https://mx-app-blob-prod.maxon.net/mx-package-production/installer/macos/maxon/cinema4d/releases/${appNewVersion}/Cinema4D_2025_${appNewVersion}_Mac.dmg" installerTool="Maxon Cinema 4D Installer.app" CLIInstaller="Maxon Cinema 4D Installer.app/Contents/MacOS/installbuilder.sh" CLIArguments=(--mode unattended --unattendedmodeui none)