feature(linux): prefer musl builds to gnu builds
authorAJ ONeal <aj@therootcompany.com>
Wed, 24 Nov 2021 06:58:52 +0000 (06:58 +0000)
committerAJ ONeal <aj@therootcompany.com>
Wed, 24 Nov 2021 06:58:52 +0000 (06:58 +0000)
_webi/normalize.js

index c7f64cc5097ce0d4119d9d95e47e04e45a4e0e1f..5fa9abb5895f3a04421ff287469d0a46518e3f0a 100644 (file)
@@ -72,6 +72,13 @@ function normalize(all) {
           return osMap[regKey].test(rel.name || rel.download);
         }) || 'unknown';
     }
           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) {
     supported.oses[rel.os] = true;
 
     if (!rel.arch) {