mirror of
https://github.com/mtan93/Installomator.git
synced 2026-05-31 22:08:08 +01:00
22170a89ae
The filters for ARM and Intel were swapped by accident, this correctly returns the ARM URL for ARM and Intel URL for Intel.
19 lines
1.1 KiB
Bash
19 lines
1.1 KiB
Bash
adobecreativeclouddesktop)
|
|
name="Adobe Creative Cloud"
|
|
#appName="Install.app"
|
|
type="dmg"
|
|
adobeurl="https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html"
|
|
if [[ $(arch) == "arm64" ]]; then
|
|
downloadURL=$(curl -fs "$adobeurl" | xmllint -html -xpath "string(//a[contains(@href,'macarm64')][contains(text(),'Download')]/@href)" - 2> /dev/null)
|
|
elif [[ $(arch) == "i386" ]]; then
|
|
downloadURL=$(curl -fs "$adobeurl" | xmllint -html -xpath "string(//a[contains(@href,'osx10')][contains(text(),'Download')]/@href)" - 2> /dev/null)
|
|
fi
|
|
#downloadURL=$(curl -fs "https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html" | grep -o "https*.*dmg" | head -1)
|
|
appNewVersion=$(curl -fs "https://helpx.adobe.com/creative-cloud/release-note/cc-release-notes.html" | grep "mandatory" | head -1 | grep -o "Version *.* released" | cut -d " " -f2)
|
|
installerTool="Install.app"
|
|
CLIInstaller="Install.app/Contents/MacOS/Install"
|
|
CLIArguments=(--mode=silent)
|
|
expectedTeamID="JQ525L2MZD"
|
|
Company="Adobe"
|
|
;;
|