mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-21 13:20:59 +00:00
Merge remote-tracking branch 'upstream/acodega-fix-AdobeCC-urls' into Adobe-labels-from-Isaac
This commit is contained in:
@@ -1,15 +1,19 @@
|
|||||||
adobecreativeclouddesktop)
|
adobecreativeclouddesktop)
|
||||||
name="Adobe Creative Cloud"
|
name="Adobe Creative Cloud"
|
||||||
#appName="Install.app"
|
|
||||||
type="dmg"
|
type="dmg"
|
||||||
|
if pgrep -q "Adobe Installer"; then
|
||||||
|
printlog "Adobe Installer is running, not a good time to update." WARN
|
||||||
|
printlog "################## End $APPLICATION \n\n" INFO
|
||||||
|
exit 75
|
||||||
|
fi
|
||||||
adobeurl="https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html"
|
adobeurl="https://helpx.adobe.com/download-install/kb/creative-cloud-desktop-app-download.html"
|
||||||
if [[ $(arch) == "arm64" ]]; then
|
if [[ $(arch) == "arm64" ]]; then
|
||||||
downloadURL=$(curl -fs "$adobeurl" | xmllint -html -xpath "string(//a[contains(@href,'osx10')][contains(text(),'Download')]/@href)" - 2> /dev/null)
|
|
||||||
elif [[ $(arch) == "i386" ]]; then
|
|
||||||
downloadURL=$(curl -fs "$adobeurl" | xmllint -html -xpath "string(//a[contains(@href,'macarm64')][contains(text(),'Download')]/@href)" - 2> /dev/null)
|
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
|
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)
|
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)
|
||||||
|
#appNewVersion=$(echo "$downloadURL" | grep -o '[^x]*$' | cut -d '.' -f 1 | sed 's/_/\./g')
|
||||||
installerTool="Install.app"
|
installerTool="Install.app"
|
||||||
CLIInstaller="Install.app/Contents/MacOS/Install"
|
CLIInstaller="Install.app/Contents/MacOS/Install"
|
||||||
CLIArguments=(--mode=silent)
|
CLIArguments=(--mode=silent)
|
||||||
|
|||||||
Reference in New Issue
Block a user