mirror of
https://github.com/lovell/sharp.git
synced 2025-07-15 13:10:13 +02:00
Allow binary download URL override via SHARP_DIST_BASE_URL #841
This commit is contained in:
parent
49297d6afb
commit
502ae78579
@ -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;
|
||||||
|
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user