mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-30 14:23:13 +01:00
Merge pull request #337 from kdrwygvh/zulu-jdk-17-newlabel
New label for Azul Zulu JDK 17
This commit is contained in:
13
fragments/labels/zulujdk17.sh
Normal file
13
fragments/labels/zulujdk17.sh
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
zulujdk17)
|
||||||
|
name="Zulu JDK 17"
|
||||||
|
type="pkgInDmg"
|
||||||
|
packageID="com.azulsystems.zulu.17"
|
||||||
|
if [[ $(arch) == i386 ]]; then
|
||||||
|
downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu17.*ca-jdk17.*x64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1)
|
||||||
|
elif [[ $(arch) == arm64 ]]; then
|
||||||
|
downloadURL=https://cdn.azul.com/zulu/bin/$(curl -fs "https://cdn.azul.com/zulu/bin/" | grep -Eio '">zulu17.*ca-jdk17.*aarch64.dmg(.*)' | cut -c3- | sed 's/<\/a>//' | sed -E 's/([0-9.]*)M//' | awk '{print $2 $1}' | sort | cut -c11- | tail -1)
|
||||||
|
fi
|
||||||
|
expectedTeamID="TDTHCUPYFR"
|
||||||
|
appCustomVersion(){ java -version 2>&1 | grep Runtime | awk '{print $4}' | sed -e "s/.*Zulu//" | cut -d '-' -f 1 | sed -e "s/+/\./" }
|
||||||
|
appNewVersion=$(echo "$downloadURL" | cut -d "-" -f 1 | sed -e "s/.*zulu//") # Cannot be compared to anything
|
||||||
|
;;
|
||||||
Reference in New Issue
Block a user