mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-01-24 14:34:15 +08:00
exe and sh download java link update (#1903)
* Update main.cpp * exe and sh download java link update * fix
This commit is contained in:
parent
e0c97da9fd
commit
a3eaccb45b
@ -133,10 +133,10 @@ fi
|
||||
|
||||
if [[ "$_HMCL_ARCH" == "loongarch64" ]]; 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
|
||||
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
|
||||
exit 1
|
||||
fi
|
||||
@ -144,11 +144,11 @@ fi
|
||||
|
||||
case "$_HMCL_OS" in
|
||||
linux)
|
||||
_HMCL_DOWNLOAD_PAGE_OS="&os=Linux";;
|
||||
_HMCL_DOWNLOAD_PAGE_OS="linux";;
|
||||
osx)
|
||||
_HMCL_DOWNLOAD_PAGE_OS="&os=macOS";;
|
||||
_HMCL_DOWNLOAD_PAGE_OS="macos";;
|
||||
windows)
|
||||
_HMCL_DOWNLOAD_PAGE_OS="&os=Windows";;
|
||||
_HMCL_DOWNLOAD_PAGE_OS="windows";;
|
||||
*)
|
||||
echo "Unknown os: $_HMCL_OS" 1>&2
|
||||
exit 1
|
||||
@ -157,20 +157,20 @@ esac
|
||||
|
||||
case "$_HMCL_ARCH" in
|
||||
arm64)
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=64-bit&architecture=ARM";;
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="arm64";;
|
||||
arm32)
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=32-bit&architecture=ARM";;
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="arm32";;
|
||||
x86_64)
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=64-bit&architecture=x86";;
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="x86_64";;
|
||||
x86)
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="&bitness=32-bit&architecture=x86";;
|
||||
_HMCL_DOWNLOAD_PAGE_ARCH="x86";;
|
||||
*)
|
||||
echo "Unknown architecture: $_HMCL_ARCH" 1>&2
|
||||
exit 1
|
||||
;;
|
||||
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
|
||||
echo "运行 HMCL 需要 Java 运行时环境,请安装 Java 并设置环境变量后重试。" 1>&2
|
||||
@ -180,4 +180,4 @@ else
|
||||
echo "Please install Java and set the environment variables and try again." 1>&2
|
||||
echo "$_HMCL_DOWNLOAD_PAGE" 1>&2
|
||||
fi
|
||||
exit 1
|
||||
exit 1
|
||||
|
@ -156,11 +156,11 @@ error:
|
||||
|
||||
if (isWin7OrLater) {
|
||||
if (isARM64) {
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/windows-aarch64.html";
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/windows/arm64.html";
|
||||
} if (isX64) {
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/windows-x64.html";
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/windows/x86_64.html";
|
||||
} else {
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/windows-i586.html";
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/windows/x86.html";
|
||||
}
|
||||
} else {
|
||||
downloadLink = L"https://docs.hmcl.net/downloads/java.html";
|
||||
|
Loading…
Reference in New Issue
Block a user