mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-09 13:21:53 +00:00
Merge branch 'pr/457'
This commit is contained in:
13
fragments/labels/androidstudio.sh
Normal file
13
fragments/labels/androidstudio.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
androidstudio)
|
||||||
|
name="Android Studio"
|
||||||
|
type="dmg"
|
||||||
|
if [[ $(arch) == arm64 ]]; then
|
||||||
|
downloadURL=$(curl -fsL "https://developer.android.com/studio#downloads" | grep -i arm.dmg | head -2 | grep -o -i -E "https.*" | cut -d '"' -f1)
|
||||||
|
appNewVersion=$( echo "${downloadURL}" | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' )
|
||||||
|
elif [[ $(arch) == i386 ]]; then
|
||||||
|
downloadURL=$(curl -fsL "https://developer.android.com/studio#downloads" | grep -i mac.dmg | head -2 | grep -o -i -E "https.*" | cut -d '"' -f1)
|
||||||
|
appNewVersion=$( echo "${downloadURL}" | head -1 | sed 's/^.*[^0-9]\([0-9]*\.[0-9]*\.[0-9]*\.[0-9]*\).*$/\1/' )
|
||||||
|
fi
|
||||||
|
expectedTeamID="EQHXZ8M8AV"
|
||||||
|
blockingProcesses=( androidstudio )
|
||||||
|
;;
|
||||||
Reference in New Issue
Block a user