Remove install script, building from source is now opt-in

The vast majority of people don't need this. Package managers
are (correctly) starting to block install scripts by default,
so this change should reduce install-time warnings.
This commit is contained in:
Lovell Fuller
2025-12-21 12:35:18 +00:00
parent 1a2c1c8833
commit e1bad5470e
7 changed files with 17 additions and 45 deletions

View File

@@ -10,7 +10,7 @@ const {
spawnRebuild,
} = require('../lib/libvips');
log('Attempting to build from source via node-gyp');
log('Building from source');
log('See https://sharp.pixelplumbing.com/install#building-from-source');
try {
@@ -29,7 +29,7 @@ try {
}
if (useGlobalLibvips(log)) {
log(`Detected globally-installed libvips v${globalLibvipsVersion()}`);
log(`Found globally-installed libvips v${globalLibvipsVersion()}`);
}
const status = spawnRebuild();