2018-12-11 11:20:11 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
|
|
|
case "$1" in
|
|
|
|
java8)
|
2023-10-19 12:01:09 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/8u392+9/bellsoft-jdk8u392+9-linux-amd64.tar.gz"
|
2018-12-11 11:20:11 +08:00
|
|
|
;;
|
|
|
|
java11)
|
2023-10-19 12:02:15 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/11.0.21+10/bellsoft-jdk11.0.21+10-linux-amd64.tar.gz"
|
2018-12-11 11:20:11 +08:00
|
|
|
;;
|
2021-07-16 19:52:57 +08:00
|
|
|
java17)
|
2023-10-19 12:02:55 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/17.0.9+11/bellsoft-jdk17.0.9+11-linux-amd64.tar.gz"
|
2021-07-16 19:52:57 +08:00
|
|
|
;;
|
2023-09-13 17:42:46 +08:00
|
|
|
java21)
|
2023-10-19 12:03:47 +08:00
|
|
|
echo "https://github.com/bell-sw/Liberica/releases/download/21.0.1+12/bellsoft-jdk21.0.1+12-linux-amd64.tar.gz"
|
2023-09-13 17:42:46 +08:00
|
|
|
;;
|
2022-08-25 08:50:36 +08:00
|
|
|
*)
|
2018-12-11 11:20:11 +08:00
|
|
|
echo $"Unknown java version"
|
|
|
|
exit 1
|
2019-06-05 05:21:09 +08:00
|
|
|
esac
|