use crate::errors::DistributionResult;
use lighty_core::system::{ARCHITECTURE, OS};
pub fn build_temurin_url(version: &u8) -> DistributionResult<String> {
let os_name = OS.get_adoptium_name()?;
let arch = ARCHITECTURE.get_simple_name()?;
Ok(format!(
"https://api.adoptium.net/v3/binary/latest/{}/ga/{}/{}/jre/hotspot/normal/eclipse?project=jdk",
version, os_name, arch
))
}