Use the shared target triple for the release catalog
This commit is contained in:
@@ -42,11 +42,7 @@ fn invalid() -> Error {
|
|||||||
Error(StatusCode::BAD_REQUEST, "INVALID_AGENT_RELEASE")
|
Error(StatusCode::BAD_REQUEST, "INVALID_AGENT_RELEASE")
|
||||||
}
|
}
|
||||||
pub fn platform_name(platform: Platform) -> &'static str {
|
pub fn platform_name(platform: Platform) -> &'static str {
|
||||||
match platform {
|
platform.target_triple()
|
||||||
Platform::LinuxX64 => "x86_64-unknown-linux-gnu",
|
|
||||||
Platform::WindowsX64 => "x86_64-pc-windows-msvc",
|
|
||||||
Platform::WindowsGnuX64 => "x86_64-pc-windows-gnu",
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
pub fn protected_file(path: &FsPath, maximum: u64) -> Result<Vec<u8>, Error> {
|
pub fn protected_file(path: &FsPath, maximum: u64) -> Result<Vec<u8>, Error> {
|
||||||
let key_path =
|
let key_path =
|
||||||
|
|||||||
Reference in New Issue
Block a user