diff --git a/_webi/build-classifier b/_webi/build-classifier index 9f87804..f9cc9f3 160000 --- a/_webi/build-classifier +++ b/_webi/build-classifier @@ -1 +1 @@ -Subproject commit 9f87804eb49016dc729766a34c96f419466f6310 +Subproject commit f9cc9f3e197c2b8b68ce506293599037fc1d68e8 diff --git a/_webi/builds-cacher.js b/_webi/builds-cacher.js index 961604e..1ad983b 100644 --- a/_webi/builds-cacher.js +++ b/_webi/builds-cacher.js @@ -621,13 +621,15 @@ BuildsCacher.create = function ({ ALL_TERMS, installers }) { let arches = waterfall[hostTarget.arch] || HostTargets.WATERFALL.ANYOS[hostTarget.arch] || [hostTarget.arch]; arches = arches.concat(['ANYARCH']); - let libcs = waterfall[hostTarget.libc] || - HostTargets.WATERFALL.ANYOS[hostTarget.libc] || [hostTarget.libc]; + // termsToTarget omits libc for plain UAs; 'libc' → waterfall ['none','libc',...] + let libc = hostTarget.libc || 'libc'; + let libcs = waterfall[libc] || + HostTargets.WATERFALL.ANYOS[libc] || [libc]; // Extend the glibc-host waterfall: the table only lists [none, libc] // but Rust projects (bat, rg) and node ship libc='gnu' builds, and // static musl builds also run on glibc hosts. - if (hostTarget.libc === 'libc' && !libcs.includes('gnu')) { + if (libc === 'libc' && !libcs.includes('gnu')) { libcs = ['none', 'gnu', 'musl', 'libc']; } diff --git a/_webi/ua-detect.js b/_webi/ua-detect.js index e850317..d68f454 100644 --- a/_webi/ua-detect.js +++ b/_webi/ua-detect.js @@ -38,9 +38,8 @@ function getOs(ua) { // It's the year of the Linux Desktop! // See also http://www.mslinux.org/ // 'linux' must be tested before 'Microsoft' because WSL - // (TODO: does this affect cygwin / msysgit?) return 'linux'; - } else if (/^ms$|Microsoft|Windows|win32|win|PowerShell/i.test(ua)) { + } else if (/^ms$|Microsoft|Windows|win32|win|PowerShell|CYGWIN|MINGW/i.test(ua)) { // 'win' must be tested after 'darwin' return 'windows'; } else if (/Linux|curl|wget/i.test(ua)) {