From 17c3f58fea3d9d749d15d0fccc3fbc1afa717be8 Mon Sep 17 00:00:00 2001 From: evilebottnawi Date: Tue, 18 Sep 2018 20:47:32 +0300 Subject: [PATCH] fix: binary paths --- src/bin-wrapper.js | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/bin-wrapper.js b/src/bin-wrapper.js index a9486f4..c8074c1 100644 --- a/src/bin-wrapper.js +++ b/src/bin-wrapper.js @@ -15,13 +15,24 @@ module.exports = { .src(`${url}linux/cjpeg`, "linux") .dest(dest) .use(isWin ? "cjpeg.exe" : "cjpeg"), - djpeg: new BinWrapper().dest(dest).use(isWin ? "djpeg.exe" : "djpeg"), + djpeg: new BinWrapper() + .src(`${url}linux/djpeg`, "linux") + .dest(dest) + .use(isWin ? "djpeg.exe" : "djpeg"), jpegtran: new BinWrapper() + .src(`${url}linux/jpegtran`, "linux") .dest(dest) .use(isWin ? "jpegtran.exe" : "jpegtran"), rdjpgcom: new BinWrapper() + .src(`${url}linux/rdjpgcom`, "linux") .dest(dest) .use(isWin ? "rdjpgcom.exe" : "rdjpgcom"), - tjbench: new BinWrapper().dest(dest).use(isWin ? "tjbench.exe" : "tjbench"), - wrjpgcom: new BinWrapper().dest(dest).use(isWin ? "wrjpgcom.exe" : "wrjpgcom") + tjbench: new BinWrapper() + .src(`${url}linux/tjbench`, "linux") + .dest(dest) + .use(isWin ? "tjbench.exe" : "tjbench"), + wrjpgcom: new BinWrapper() + .src(`${url}linux/wrjpgcom`, "linux") + .dest(dest) + .use(isWin ? "wrjpgcom.exe" : "wrjpgcom") };