Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 10 additions & 7 deletions src/github.rs
Original file line number Diff line number Diff line change
Expand Up @@ -394,13 +394,16 @@ pub fn find_matching_asset(
}
}

// Prefer archives over bare binaries (but still allow bare binaries)
if name_lower.ends_with(".tar.gz")
|| name_lower.ends_with(".tgz")
|| name_lower.ends_with(".tar.xz")
|| name_lower.ends_with(".zip")
{
score += 5;
// Only consider archives if platform matched
if score >= 10 {
// Prefer archives over bare binaries (but still allow bare binaries)
if name_lower.ends_with(".tar.gz")
|| name_lower.ends_with(".tgz")
|| name_lower.ends_with(".tar.xz")
|| name_lower.ends_with(".zip")
{
score += 5;
}
}

// Avoid checksum-like names
Expand Down
Loading