Allow binary download URL override via SHARP_DIST_BASE_URL #841

This commit is contained in:
Lovell Fuller 2017-06-20 21:40:46 +01:00
parent 49297d6afb
commit 502ae78579
2 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,7 @@ const got = require('got');
const semver = require('semver'); const semver = require('semver');
const tar = require('tar'); const tar = require('tar');
const distBaseUrl = 'https://dl.bintray.com/lovell/sharp/'; const distBaseUrl = process.env.SHARP_DIST_BASE_URL || 'https://dl.bintray.com/lovell/sharp/';
// Use NPM-provided environment variable where available, falling back to require-based method for Electron // Use NPM-provided environment variable where available, falling back to require-based method for Electron
const minimumLibvipsVersion = process.env.npm_package_config_libvips || require('./package.json').config.libvips; const minimumLibvipsVersion = process.env.npm_package_config_libvips || require('./package.json').config.libvips;

View File

@ -14,6 +14,9 @@ Requires libvips v8.5.5.
[#837](https://github.com/lovell/sharp/issues/837) [#837](https://github.com/lovell/sharp/issues/837)
[@rexxars](https://github.com/rexxars) [@rexxars](https://github.com/rexxars)
* Allow binary download URL override via SHARP_DIST_BASE_URL env variable.
[#841](https://github.com/lovell/sharp/issues/841)
#### v0.18.1 - 30<sup>th</sup> May 2017 #### v0.18.1 - 30<sup>th</sup> May 2017
* Remove regression from #781 that could cause incorrect shrink calculation. * Remove regression from #781 that could cause incorrect shrink calculation.