Comparing version 0.1.7 to 0.1.8
@@ -6,9 +6,11 @@ 'use strict'; | ||
var BASE_URL = 'https://raw.githubusercontent.com/shinnn/node-cwebp-bin/2b4b0836753e748f899209c86a37a378bc9fdcd9/vendor/'; | ||
var bin = new BinWrapper() | ||
.src('https://raw.github.com/1000ch/node-cwebp-bin/master/vendor/osx/cwebp', 'darwin') | ||
.src('https://raw.github.com/1000ch/node-cwebp-bin/master/vendor/linux/cwebp', 'linux') | ||
.src('https://raw.github.com/1000ch/node-cwebp-bin/master/vendor/win/cwebp.exe', 'win32') | ||
.dest(path.join(__dirname, 'vendor')) | ||
.src(BASE_URL + 'osx/cwebp', 'darwin') | ||
.src(BASE_URL + 'linux/cwebp', 'linux') | ||
.src(BASE_URL + 'win/cwebp.exe', 'win32') | ||
.dest(path.join(__dirname, '../vendor')) | ||
.use(process.platform === 'win32' ? 'cwebp.exe' : 'cwebp'); | ||
module.exports = bin; |
@@ -13,4 +13,4 @@ 'use strict'; | ||
.src('http://downloads.webmproject.org/releases/webp/libwebp-0.4.1.tar.gz') | ||
.cmd('node -p "require(\'fs\').chmodSync(\'./configure\', \'755\')"') | ||
.cmd('./configure && make && mkdir -p ' + bin.dest() + ' && mv ./examples/.libs/cwebp ' + bin.use()); | ||
.cmd('./configure --prefix="' + bin.dest() + '" --bindir="' + bin.dest() + '"') | ||
.cmd('make && make install'); | ||
@@ -17,0 +17,0 @@ return builder.build(function (error) { |
{ | ||
"name": "cwebp-bin", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "cwebp node.js wrapper that convert JPG or PNG into WebP", | ||
@@ -5,0 +5,0 @@ "bin": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
40
8370