projects
/
webi-installers
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a05e632
)
feature(linux): prefer musl builds to gnu builds
author
AJ ONeal
<aj@therootcompany.com>
Wed, 24 Nov 2021 06:58:52 +0000
(06:58 +0000)
committer
AJ ONeal
<aj@therootcompany.com>
Wed, 24 Nov 2021 06:58:52 +0000
(06:58 +0000)
_webi/normalize.js
patch
|
blob
|
history
diff --git
a/_webi/normalize.js
b/_webi/normalize.js
index c7f64cc5097ce0d4119d9d95e47e04e45a4e0e1f..5fa9abb5895f3a04421ff287469d0a46518e3f0a 100644
(file)
--- 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) {