From 5e60eaf59563ccb599b1ff1384992d2e21e9e7a1 Mon Sep 17 00:00:00 2001 From: Glavo Date: Wed, 29 Jan 2025 07:35:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20macOS=20=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=20HMCLauncher.sh=20=E4=B8=8D=E4=BC=9A=E6=98=BE=E7=A4=BA=20Java?= =?UTF-8?q?=20=E4=B8=8B=E8=BD=BD=E9=A1=B5=E9=9D=A2=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=20(#3549)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HMCL/src/main/resources/assets/HMCLauncher.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/HMCL/src/main/resources/assets/HMCLauncher.sh b/HMCL/src/main/resources/assets/HMCLauncher.sh index 4b61be003..5d490de80 100644 --- a/HMCL/src/main/resources/assets/HMCLauncher.sh +++ b/HMCL/src/main/resources/assets/HMCLauncher.sh @@ -152,15 +152,15 @@ fi # Java not found -if [ "$_HMCL_OS" == "osx" ]; then - _HMCL_DOWNLOAD_PAGE_OS="macos" -else - _HMCL_DOWNLOAD_PAGE_OS="$_HMCL_OS" -fi - case "$_HMCL_OS-$_HMCL_ARCH" in - windows-x86|windows-x86_64|windows-arm64|linux-x86|linux-x86_64|linux-arm32|linux-arm64|linux-riscv64|linux-loongarch64|macos-x86_64|macos-arm64) - _HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/$_HMCL_DOWNLOAD_PAGE_OS/$_HMCL_ARCH.html" + windows-x86|windows-x86_64|windows-arm64) + _HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/windows/$_HMCL_ARCH.html" + ;; + linux-x86|linux-x86_64|linux-arm64|linux-arm32|linux-riscv64|linux-loongarch64) + _HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/linux/$_HMCL_ARCH.html" + ;; + osx-x86_64|osx-arm64) + _HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/macos/$_HMCL_ARCH.html" ;; esac