From a0e5287720c4e9bbe5cf6861b123dde8ab71c54f Mon Sep 17 00:00:00 2001 From: LynithDev <61880709+LynithDev@users.noreply.github.com> Date: Sun, 8 Dec 2024 15:06:03 +0100 Subject: [PATCH] fix: macOS target compile error --- packages/core/src/api/java.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/core/src/api/java.rs b/packages/core/src/api/java.rs index 8e8e289..75aabb8 100644 --- a/packages/core/src/api/java.rs +++ b/packages/core/src/api/java.rs @@ -65,10 +65,11 @@ pub async fn install_java_from_major(java_version: u32) -> crate::Result crate::Result { let state = State::get().await?; + let java_version = *download.java_version.get(0).unwrap_or(&0); let ingress = init_ingress( crate::IngressType::DownloadJava { - version: *download.java_version.get(0).unwrap_or(&0), + version: java_version, }, 100.0, "downloading java version", @@ -125,7 +126,7 @@ pub async fn install_java_from_package(download: JavaZuluPackage) -> crate::Resu #[cfg(not(target_os = "macos"))] { - base_path = base_path.join("bin").join(crate::constants::JAVA_BIN) + base_path = base_path.join("bin").join(crate::constants::JAVA_BIN); } send_ingress(&ingress, 100.0, Some("installed java binary")).await?;