diff --git a/install.js b/install.js index b76cfa6..979b921 100644 --- a/install.js +++ b/install.js @@ -7,7 +7,7 @@ const util = require('util'); const exec = util.promisify(childProcess.exec); (async () => { - if (fs.existsSync(path.resolve(__dirname, '../dist'))) { + if (fs.existsSync(path.resolve(__dirname, '../dist')) && !process.env.SKIP_BINARY_DOWNLOAD) { const fetchBinaries = require('./fetch-binaries'); const gsPath = path.resolve(__dirname, '../bin/gs'); diff --git a/package.json b/package.json index 1c02e72..1bc0580 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "compress-pdf", - "version": "0.3.4", + "version": "0.3.5", "templateVersion": "1.3.0", "description": "An compress pdf library using ghostscript", "main": "dist/index.js",