|
@ -414,8 +414,20 @@ fn_deps_build_debian(){ |
|
|
# Hurtword/Rust |
|
|
# Hurtword/Rust |
|
|
elif [ "${shortname}" == "hw" ]||[ "${shortname}" == "rust" ]; then |
|
|
elif [ "${shortname}" == "hw" ]||[ "${shortname}" == "rust" ]; then |
|
|
array_deps_required+=( lib32z1 ) |
|
|
array_deps_required+=( lib32z1 ) |
|
|
# Minecraft, Rising World, Wurm |
|
|
# Minecraft, Rising World |
|
|
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]||[ "${shortname}" == "wmc" ]||[ "${shortname}" == "rw" ]; then |
|
|
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]||[ "${shortname}" == "wmc" ]; then |
|
|
|
|
|
javaversion=$(java -version 2>&1 | grep "version") |
|
|
|
|
|
if [ "${javaversion}" ]; then |
|
|
|
|
|
# Added for users using Oracle JRE to bypass the check. |
|
|
|
|
|
javacheck=1 |
|
|
|
|
|
else |
|
|
|
|
|
if { [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "20.04" ]; }||{ [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "20.10" ]; }||{ [ "${distroid}" == "ubuntu" ]&&[ "${distroversion}" == "21.04" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "20.04" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "20.10" ]; }||{ [ "${distroid}" == "pop" ]&&[ "${distroversion}" == "21.04" ]; }; then |
|
|
|
|
|
array_deps_required+=( openjdk-16-jre ) |
|
|
|
|
|
else |
|
|
|
|
|
array_deps_required+=( default-jre ) |
|
|
|
|
|
fi |
|
|
|
|
|
fi |
|
|
|
|
|
elif [ "${shortname}" == "rw" ]; then |
|
|
javaversion=$(java -version 2>&1 | grep "version") |
|
|
javaversion=$(java -version 2>&1 | grep "version") |
|
|
if [ "${javaversion}" ]; then |
|
|
if [ "${javaversion}" ]; then |
|
|
# Added for users using Oracle JRE to bypass the check. |
|
|
# Added for users using Oracle JRE to bypass the check. |
|
|