Add support for 32-bit Windows (win32-ia32)

This commit is contained in:
Lovell Fuller
2020-02-19 21:44:13 +00:00
parent 8b3c0daab2
commit 409e5174bb
7 changed files with 23 additions and 10 deletions

View File

@@ -57,10 +57,7 @@ try {
// Is this arch/platform supported?
const arch = process.env.npm_config_arch || process.arch;
const platformAndArch = platform();
if (platformAndArch === 'win32-ia32') {
throw new Error('Windows x86 (32-bit) node.exe is not supported');
}
if (arch === 'ia32') {
if (arch === 'ia32' && !platformAndArch.startsWith('win32')) {
throw new Error(`Intel Architecture 32-bit systems require manual installation of libvips >= ${minimumLibvipsVersion}`);
}
if (platformAndArch === 'freebsd-x64' || platformAndArch === 'openbsd-x64' || platformAndArch === 'sunos-x64') {