Skip to content

Commit

Permalink
Allow binary download URL override via SHARP_DIST_BASE_URL #841
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Jun 20, 2017
1 parent 49297d6 commit 502ae78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion binding.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const got = require('got');
const semver = require('semver');
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
const minimumLibvipsVersion = process.env.npm_package_config_libvips || require('./package.json').config.libvips;
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Requires libvips v8.5.5.
[#837](https://github.com/lovell/sharp/issues/837)
[@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

* Remove regression from #781 that could cause incorrect shrink calculation.
Expand Down

0 comments on commit 502ae78

Please sign in to comment.