Merge pull request #665 from niavlysAO/label-screamingfrogspider-dmg-per-arch

label screamingfrogspider.sh fix, dmg per arch
This commit is contained in:
Søren Theilgaard
2022-09-30 20:40:03 +02:00
committed by GitHub

View File

@@ -1,7 +1,12 @@
screamingfrogseospider)
name="Screaming Frog SEO Spider"
type="dmg"
downloadURL=$(curl -fs "https://www.screamingfrog.co.uk/wp-content/themes/screamingfrog/inc/download-modal.php" | grep -i -o "https.*\.dmg" | head -1)
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"
;;