mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-01-12 00:42:00 -06:00
build appimage on j17
This commit is contained in:
parent
a23ffeee6b
commit
48ea682050
@ -29,61 +29,29 @@ fi
|
||||
|
||||
rsync -av appimage/skel/ "${APPDIR}/"
|
||||
cp target/nb.jar "${APPDIR}/usr/bin/nb.jar"
|
||||
JAVA_VERSION="15"
|
||||
JAVA_VERSION="17"
|
||||
|
||||
mkdir -p "${APPDIR}/usr/bin/jre"
|
||||
|
||||
if [ "$JAVA_VERSION" == "15" ]
|
||||
|
||||
if [ "$JAVA_VERSION" == "17" ]
|
||||
then
|
||||
if [ ! -d "cache/jre15" ] ; then
|
||||
printf "getting jre once into cache/jre15\n";
|
||||
if [ ! -d "cache/jdk17" ] ; then
|
||||
printf "getting jdk17 once into cache/jdk17\n";
|
||||
mkdir -p cache
|
||||
(cd cache && (
|
||||
if [ "$BUILD_OPENJ9" = "true" ]
|
||||
then
|
||||
wget -c wget -c https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk15u-2020-11-19-07-04/OpenJDK15U-jre_x64_linux_openj9_linuxXL_2020-11-19-07-04.tar.gz
|
||||
tar -xf OpenJDK15U-jre_x64_linux_openj9_linuxXL_2020-11-19-07-04.tar.gz
|
||||
mv jdk-15.0.1+9-jre jre15
|
||||
rm OpenJDK15U-jre_x64_linux_openj9_linuxXL_2020-11-19-07-04.tar.gz
|
||||
else
|
||||
wget -c https://github.com/AdoptOpenJDK/openjdk15-binaries/releases/download/jdk15u-2020-11-19-07-04/OpenJDK15U-jre_x64_linux_hotspot_2020-11-19-07-04.tar.gz
|
||||
tar xf OpenJDK15U-jre_x64_linux_hotspot_2020-11-19-07-04.tar.gz
|
||||
mv jdk-15.0.1+9-jre jre15
|
||||
fi
|
||||
wget -c https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.1%2B12/OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12.tar.gz
|
||||
tar -xf OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12.tar.gz
|
||||
mv jdk-17.0.1+12 jdk17
|
||||
rm OpenJDK17U-jdk_x64_linux_hotspot_17.0.1_12.tar.gz
|
||||
))
|
||||
fi
|
||||
rsync -av cache/jre15/ "${APPDIR}/usr/bin/jre/"
|
||||
# Java 14 should run binaries targeted to Java 11 bytecode
|
||||
elif [ "$JAVA_VERSION" == "14" ] ; then
|
||||
if [ ! -d "cache/jre14" ] ; then
|
||||
printf "getting jre once into cache/jre14\n";
|
||||
mkdir -p cache
|
||||
(cd cache && (
|
||||
if [ "$BUILD_OPENJ9" = "true" ]
|
||||
then
|
||||
wget -c https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk14u-2020-04-27-07-27/OpenJDK14U-jre_x64_linux_openj9_linuxXL_2020-04-27-07-27.tar.gz
|
||||
tar xf OpenJDK14U-jre_x64_linux_openj9_linuxXL_2020-04-27-07-27.tar.gz
|
||||
mv jdk-14.0.1+7-jre jre14
|
||||
rm OpenJDK14U-jre_x64_linux_openj9_linuxXL_2020-04-27-07-27.tar.gz
|
||||
else
|
||||
wget -c https://github.com/AdoptOpenJDK/openjdk14-binaries/releases/download/jdk14u-2020-04-27-07-27/OpenJDK14U-jre_x64_linux_hotspot_2020-04-27-07-27.tar.gz
|
||||
tar xf OpenJDK14U-jre_x64_linux_hotspot_2020-04-27-07-27.tar.gz
|
||||
mv jdk-14.0.1+7-jre jre14
|
||||
fi
|
||||
))
|
||||
fi
|
||||
rsync -av cache/jre14/ "${APPDIR}/usr/bin/jre/"
|
||||
rsync -av cache/jdk17/ "${APPDIR}/usr/bin/jre/"
|
||||
else
|
||||
printf "Unknown java version indicated in $0"
|
||||
exit 2
|
||||
# wget -c https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.2%2B10/OpenJDK12U-jre_x64_linux_hotspot_12.0.2_10.tar.gz
|
||||
# tar xf OpenJDK12U-jre_x64_linux_hotspot_12.0.2_10.tar.gz
|
||||
# mv jdk-12.0.2+10-jre jre
|
||||
# rm OpenJDK12U-jre_x64_linux_hotspot_12.0.2_10.tar.gz
|
||||
fi
|
||||
|
||||
|
||||
|
||||
if [ ! -f "${APPDIR}/AppRun" ]
|
||||
then
|
||||
( cd ${APPDIR} && (
|
||||
@ -92,42 +60,6 @@ if [ ! -f "${APPDIR}/AppRun" ]
|
||||
))
|
||||
fi
|
||||
|
||||
#( cd ${APPDIR} && (
|
||||
# rsync -av ..
|
||||
# if [ ! -d "usr/bin/jre" ]
|
||||
# then
|
||||
# printf "getting jre...\n";
|
||||
#
|
||||
# # JRE 12
|
||||
# wget -c https://github.com/AdoptOpenJDK/openjdk12-binaries/releases/download/jdk-12.0.2%2B10/OpenJDK12U-jre_x64_linux_hotspot_12.0.2_10.tar.gz
|
||||
# tar xf OpenJDK12U-jre_x64_linux_hotspot_12.0.2_10.tar.gz
|
||||
# mv jdk-12.0.2+10-jre usr/bin/jre
|
||||
# rm OpenJDK12U-jre_x64_linux_hotspot_12.0.2_10.tar.gz
|
||||
#
|
||||
# # JRE 13
|
||||
# # wget -c https://github.com/AdoptOpenJDK/openjdk13-binaries/releases/download/jdk-13%2B33/OpenJDK13U-jre_x64_linux_hotspot_13_33.tar.gz
|
||||
# # tar xf OpenJDK13U-jre_x64_linux_hotspot_13_33.tar.gz
|
||||
# #mv jdk-13+33-jre usr/bin/jre
|
||||
# #rm OpenJDK13U-jre_x64_linux_hotspot_13_33.tar.gz
|
||||
# else
|
||||
# printf "jre directory present, skipping...\n";
|
||||
# fi
|
||||
#
|
||||
# if [ -f "AppRun" ]
|
||||
# then
|
||||
# printf "Removing stale AppRun...\n";
|
||||
# rm AppRun
|
||||
# fi
|
||||
#
|
||||
# if [ ! -f "AppRun" ]
|
||||
# then
|
||||
# printf "Linking AppRun...\n";
|
||||
# ln -s usr/bin/nb AppRun
|
||||
# fi
|
||||
#
|
||||
# )
|
||||
#)
|
||||
|
||||
printf "getting appimage tool and building image...\n";
|
||||
|
||||
( cd target && (
|
||||
|
Loading…
Reference in New Issue
Block a user