From: AJ ONeal Date: Wed, 24 Nov 2021 06:58:52 +0000 (+0000) Subject: feature(linux): prefer musl builds to gnu builds X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;ds=inline;h=ef1b4f03c8ab628f08db39d658c4425c2b5af8de;p=webi-installers%2F.git feature(linux): prefer musl builds to gnu builds --- 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) {