exe and sh download java link update (#1903)

* Update main.cpp

* exe and sh download java link update

* fix
This commit is contained in:
zkitefly 2022-12-06 13:33:00 +08:00 committed by GitHub
parent e0c97da9fd
commit a3eaccb45b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 14 deletions

View File

@ -133,10 +133,10 @@ fi
if [[ "$_HMCL_ARCH" == "loongarch64" ]]; then if [[ "$_HMCL_ARCH" == "loongarch64" ]]; then
if [ "$_HMCL_USE_CHINESE" == true ]; then if [ "$_HMCL_USE_CHINESE" == true ]; then
echo "运行 HMCL 需要 Java 运行时环境,请安装龙芯 JDK8 (http://www.loongnix.cn/zh/api/java/downloads-jdk8/index.html) 并设置环境变量后重试。" 1>&2 echo "运行 HMCL 需要 Java 运行时环境,请安装龙芯 JDK8 (https://docs.hmcl.net/downloads/loongnix.html) 并设置环境变量后重试。" 1>&2
else else
echo "The Java runtime environment is required to run HMCL." 1>&2 echo "The Java runtime environment is required to run HMCL." 1>&2
echo "Please install Loongson JDK8 (http://www.loongnix.cn/zh/api/java/downloads-jdk8/index.html) and set the environment variables, then try again." 1>&2 echo "Please install Loongson JDK8 (https://docs.hmcl.net/downloads/loongnix.html) and set the environment variables, then try again." 1>&2
fi fi
exit 1 exit 1
fi fi
@ -144,11 +144,11 @@ fi
case "$_HMCL_OS" in case "$_HMCL_OS" in
linux) linux)
_HMCL_DOWNLOAD_PAGE_OS="&os=Linux";; _HMCL_DOWNLOAD_PAGE_OS="linux";;
osx) osx)
_HMCL_DOWNLOAD_PAGE_OS="&os=macOS";; _HMCL_DOWNLOAD_PAGE_OS="macos";;
windows) windows)
_HMCL_DOWNLOAD_PAGE_OS="&os=Windows";; _HMCL_DOWNLOAD_PAGE_OS="windows";;
*) *)
echo "Unknown os: $_HMCL_OS" 1>&2 echo "Unknown os: $_HMCL_OS" 1>&2
exit 1 exit 1
@ -157,20 +157,20 @@ esac
case "$_HMCL_ARCH" in case "$_HMCL_ARCH" in
arm64) arm64)
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=64-bit&architecture=ARM";; _HMCL_DOWNLOAD_PAGE_ARCH="arm64";;
arm32) arm32)
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=32-bit&architecture=ARM";; _HMCL_DOWNLOAD_PAGE_ARCH="arm32";;
x86_64) x86_64)
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=64-bit&architecture=x86";; _HMCL_DOWNLOAD_PAGE_ARCH="x86_64";;
x86) x86)
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=32-bit&architecture=x86";; _HMCL_DOWNLOAD_PAGE_ARCH="x86";;
*) *)
echo "Unknown architecture: $_HMCL_ARCH" 1>&2 echo "Unknown architecture: $_HMCL_ARCH" 1>&2
exit 1 exit 1
;; ;;
esac esac
_HMCL_DOWNLOAD_PAGE="https://bell-sw.com/pages/downloads/?version=java-17-lts$_HMCL_DOWNLOAD_PAGE_OS$_HMCL_DOWNLOAD_PAGE_ARCH&package=jdk-full" _HMCL_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/$_HMCL_DOWNLOAD_PAGE_OS/$_HMCL_DOWNLOAD_PAGE_ARCH.html"
if [ "$_HMCL_USE_CHINESE" == true ]; then if [ "$_HMCL_USE_CHINESE" == true ]; then
echo "运行 HMCL 需要 Java 运行时环境,请安装 Java 并设置环境变量后重试。" 1>&2 echo "运行 HMCL 需要 Java 运行时环境,请安装 Java 并设置环境变量后重试。" 1>&2

View File

@ -156,11 +156,11 @@ error:
if (isWin7OrLater) { if (isWin7OrLater) {
if (isARM64) { if (isARM64) {
downloadLink = L"https://docs.hmcl.net/downloads/windows-aarch64.html"; downloadLink = L"https://docs.hmcl.net/downloads/windows/arm64.html";
} if (isX64) { } if (isX64) {
downloadLink = L"https://docs.hmcl.net/downloads/windows-x64.html"; downloadLink = L"https://docs.hmcl.net/downloads/windows/x86_64.html";
} else { } else {
downloadLink = L"https://docs.hmcl.net/downloads/windows-i586.html"; downloadLink = L"https://docs.hmcl.net/downloads/windows/x86.html";
} }
} else { } else {
downloadLink = L"https://docs.hmcl.net/downloads/java.html"; downloadLink = L"https://docs.hmcl.net/downloads/java.html";