Prebuilt libvips v8.10.6 binaries work with musl 1.1.x and 1.2.x

This commit is contained in:
Lovell Fuller
2021-03-08 16:15:47 +00:00
parent d9af897595
commit 4d2784c10c
3 changed files with 4 additions and 2 deletions

View File

@@ -101,7 +101,7 @@ try {
}
}
if (detectLibc.family === detectLibc.MUSL && detectLibc.version) {
if (!semver.satisfies(detectLibc.version, '>=1.1.24 <1.2.0')) {
if (semver.lt(detectLibc.version, '1.1.24')) {
throw new Error(`Use with musl ${detectLibc.version} requires manual installation of libvips >= ${minimumLibvipsVersion}`);
}
}