From 2dc2bce9306e3328d8f39121efcd999a17191650 Mon Sep 17 00:00:00 2001 From: Phantop Date: Tue, 7 Dec 2021 14:06:11 -0500 Subject: [PATCH] Update mkjava to adoptium updates --- mkjava | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mkjava b/mkjava index c7ccda8..fe6ed90 100755 --- a/mkjava +++ b/mkjava @@ -2,8 +2,10 @@ PATH=$(dirname $(readlink -f "${0}")):$PATH DIR=/tmp/dwarf-portable-executable/java mkdir -p $DIR -curl -L https://api.adoptopenjdk.net/v3/binary/latest/$1/ga/linux/x64/jre/openj9/normal/adoptopenjdk | tar xz -C$DIR -JDK=$(echo $DIR/jdk*) +LINK=$(curl https://api.github.com/repos/adoptium/temurin$1-binaries/releases/latest | jq .assets[].browser_download_url | grep 'jdk_x64_linux_hotspot' | cut -d\" -f2) +curl -L $LINK | tar xz -C$DIR +$DIR/jdk*/bin/jlink --add-modules ALL-MODULE-PATH --output $DIR/jre --strip-debug --no-man-pages --no-header-files --compress=0 +JDK=$DIR/jre ver=$1 cat > $JDK/AppRun << 'EOF'