mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-08 05:31:53 +00:00
ScreamingFrogSpider now has different dmg per CPU arch. Download page provides 2 dmg links, therefore we must fix downloadURL grep
13 lines
543 B
Bash
13 lines
543 B
Bash
screamingfrogseospider)
|
|
name="Screaming Frog SEO Spider"
|
|
type="dmg"
|
|
if [[ $(arch) == i386 ]]; then
|
|
platform="Mac - (intel)"
|
|
elif [[ $(arch) == arm64 ]]; then
|
|
platform="Mac - (apple silicon)"
|
|
fi
|
|
downloadURL=$(curl -fs "https://www.screamingfrog.co.uk/wp-content/themes/screamingfrog/inc/download-modal.php" | grep "${platform}" | grep -i -o "https.*\.dmg" | head -1)
|
|
appNewVersion=$(print "$downloadURL" | sed -E 's/https.*\/[a-zA-Z]*-([0-9.]*)\.dmg/\1/g')".0"
|
|
expectedTeamID="CAHEVC3HZC"
|
|
;;
|