diff --git a/crates/server/src/agent_updates.rs b/crates/server/src/agent_updates.rs index 7047b6f..ff25fb1 100644 --- a/crates/server/src/agent_updates.rs +++ b/crates/server/src/agent_updates.rs @@ -42,11 +42,7 @@ fn invalid() -> Error { Error(StatusCode::BAD_REQUEST, "INVALID_AGENT_RELEASE") } pub fn platform_name(platform: Platform) -> &'static str { - match platform { - Platform::LinuxX64 => "x86_64-unknown-linux-gnu", - Platform::WindowsX64 => "x86_64-pc-windows-msvc", - Platform::WindowsGnuX64 => "x86_64-pc-windows-gnu", - } + platform.target_triple() } pub fn protected_file(path: &FsPath, maximum: u64) -> Result, Error> { let key_path =