From ef1b4f03c8ab628f08db39d658c4425c2b5af8de Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 24 Nov 2021 06:58:52 +0000 Subject: [PATCH] feature(linux): prefer musl builds to gnu builds --- _webi/normalize.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/_webi/normalize.js b/_webi/normalize.js index c7f64cc..5fa9abb 100644 --- a/_webi/normalize.js +++ b/_webi/normalize.js @@ -72,6 +72,13 @@ function normalize(all) { return osMap[regKey].test(rel.name || rel.download); }) || 'unknown'; } + // Hacky-doo for musl + // TODO some sort of glibc vs musl tag? + if (!rel._musl) { + if (/(\b|\.|_|-)(musl)(\b|\.|_|-)/.test(rel.download)) { + rel._musl = true; + } + } supported.oses[rel.os] = true; if (!rel.arch) { -- 2.25.1