Now vanilla (or with Fabric loader) profile creation is implemented.

This commit is contained in:
wei
2026-07-31 22:14:34 +08:00
parent 8d865c92a9
commit b5df1ec1ca
7 changed files with 668 additions and 127 deletions
+4 -5
View File
@@ -136,16 +136,15 @@ def find_java_installations(extra_install_patterns: list | None=None) -> tuple[l
try:
ver, raw = get_java_version(converted_path)
except JavaRuntimeParseException:
logger.debug(f"Unable to parse java version: {converted_path}")
except JavaRuntimeException:
logger.debug(f"Unable to run java executable: {converted_path}")
except Exception as e:
logger.exception(f"Unhandled exception: {e} (For path: {converted_path})")
finally:
if not ver:
errors.append(converted_path)
continue
if not ver:
errors.append(converted_path)
continue
logger.debug(f"Detected java version {ver} for path: {converted_path}")