diff options
| author | 2026-01-16 18:38:47 +0800 | |
|---|---|---|
| committer | 2026-01-16 18:42:12 +0800 | |
| commit | 1119f6c3cf421da2f2db92873efae8135c76b678 (patch) | |
| tree | 57ee487c5003807e984c084a31a37c34e30820cf /src-tauri/src/core/manifest.rs | |
| parent | 52cf610264444bde95c1feae58414bb9849855eb (diff) | |
| download | DropOut-1119f6c3cf421da2f2db92873efae8135c76b678.tar.gz DropOut-1119f6c3cf421da2f2db92873efae8135c76b678.zip | |
feat: enhance Java version management for Minecraft versions
Added functionality to determine and validate the required Java version for Minecraft versions, including checks for compatibility with older versions. Implemented event emissions for version installation and deletion, and updated the UI to reflect Java version requirements and installation status. Improved version metadata handling and added support for deleting versions.
Diffstat (limited to 'src-tauri/src/core/manifest.rs')
| -rw-r--r-- | src-tauri/src/core/manifest.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src-tauri/src/core/manifest.rs b/src-tauri/src/core/manifest.rs index d92ae58..637b935 100644 --- a/src-tauri/src/core/manifest.rs +++ b/src-tauri/src/core/manifest.rs @@ -25,6 +25,13 @@ pub struct Version { pub time: String, #[serde(rename = "releaseTime")] pub release_time: String, + /// Java version requirement (major version number) + /// This is populated from the version JSON file if the version is installed locally + #[serde(skip_serializing_if = "Option::is_none")] + pub java_version: Option<u64>, + /// Whether this version is installed locally + #[serde(rename = "isInstalled", skip_serializing_if = "Option::is_none")] + pub is_installed: Option<bool>, } pub async fn fetch_version_manifest() -> Result<VersionManifest, Box<dyn Error + Send + Sync>> { |