Skip to content

Commit

Permalink
fix xwin downloading on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
dankmeme01 committed Jul 14, 2024
1 parent ea3cbc4 commit 16835bb
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -738,8 +738,16 @@ fn download_xwin(dest: &Path) -> Result<(), Box<dyn std::error::Error>> {
.iter()
.find(|value| {
value.get("name").is_some_and(|v| {
v.as_str()
.is_some_and(|v| v.ends_with("x86_64-unknown-linux-musl.tar.gz"))
v.as_str().is_some_and(|v| {
v.ends_with(
#[cfg(all(target_os = "macos", target_arch = "aarch64"))]
"aarch64-apple-darwin.tar.gz",
#[cfg(all(target_os = "macos", target_arch = "x86_64"))]
"x86_64-apple-darwin.tar.gz",
#[cfg(not(target_os = "macos"))]
"x86_64-unknown-linux-musl.tar.gz",
)
})
})
});

Expand Down

0 comments on commit 16835bb

Please sign in to comment.