Skip to content

Commit 5e60eaf

Browse files
authored
修复 macOS 平台 HMCLauncher.sh 不会显示 Java 下载页面的问题 (#3549)
1 parent f70fb4a commit 5e60eaf

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

HMCL/src/main/resources/assets/HMCLauncher.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -152,15 +152,15 @@ fi
152152

153153
# Java not found
154154

155-
if [ "$_HMCL_OS" == "osx" ]; then
156-
_HMCL_DOWNLOAD_PAGE_OS="macos"
157-
else
158-
_HMCL_DOWNLOAD_PAGE_OS="$_HMCL_OS"
159-
fi
160-
161155
case "$_HMCL_OS-$_HMCL_ARCH" in
162-
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)
163-
_HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/$_HMCL_DOWNLOAD_PAGE_OS/$_HMCL_ARCH.html"
156+
windows-x86|windows-x86_64|windows-arm64)
157+
_HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/windows/$_HMCL_ARCH.html"
158+
;;
159+
linux-x86|linux-x86_64|linux-arm64|linux-arm32|linux-riscv64|linux-loongarch64)
160+
_HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/linux/$_HMCL_ARCH.html"
161+
;;
162+
osx-x86_64|osx-arm64)
163+
_HMCL_JAVA_DOWNLOAD_PAGE="https://docs.hmcl.net/downloads/macos/$_HMCL_ARCH.html"
164164
;;
165165
esac
166166

0 commit comments

Comments
 (0)