Fix an issue that causes create symlink failed when installing java on unix-like platforms.

This commit is contained in:
wei committed 2026-10-18 21:42:54 +08:00
1 parent 8bde4ef753
commit 1754b01230
15 files changed
+600 -77

No files matched your search

+2 -2
View File
@@ -24,8 +24,8 @@ class LauncherHTTPException(LauncherException):
class HashMismatchException(Exception):
def __init__(self, hash_name, got_hash, expected_hash, filepath: str | Path):
if type(filepath) == Path: filepath = Path(filepath).absolute().as_posix()
self.message = "File {} hash mismatch. Expected hash {}. Got hash {} ({})".format(filepath, got_hash,
expected_hash, hash_name)
self.message = "File {} hash mismatch. Expected hash {}. Got hash {} ({})".format(filepath, expected_hash, got_hash,
hash_name)
super().__init__(self.message)
class UnsupportedPlatformException(LauncherException):