mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Ensure npm platform flag is respected when copying DLLs
This commit is contained in:
parent
b36ad25030
commit
f29fcb1f73
@ -6,7 +6,8 @@ const path = require('path');
|
|||||||
const libvips = require('../lib/libvips');
|
const libvips = require('../lib/libvips');
|
||||||
const npmLog = require('npmlog');
|
const npmLog = require('npmlog');
|
||||||
|
|
||||||
if (process.platform === 'win32') {
|
const platform = process.env.npm_config_platform || process.platform;
|
||||||
|
if (platform === 'win32') {
|
||||||
const buildDir = path.join(__dirname, '..', 'build');
|
const buildDir = path.join(__dirname, '..', 'build');
|
||||||
const buildReleaseDir = path.join(buildDir, 'Release');
|
const buildReleaseDir = path.join(buildDir, 'Release');
|
||||||
npmLog.info('sharp', `Creating ${buildReleaseDir}`);
|
npmLog.info('sharp', `Creating ${buildReleaseDir}`);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user