From 83d3a74b942a06f0be3097e4963f7a940bd53eb0 Mon Sep 17 00:00:00 2001 From: Louis Eveillard Date: Tue, 3 Jan 2017 12:25:50 +0100 Subject: [PATCH] corrected path formation in string to use path.join instead of '/' --- bin/dodoc-media.js | 2 +- main.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dodoc-media.js b/bin/dodoc-media.js index 80d857769..cf638090c 100644 --- a/bin/dodoc-media.js +++ b/bin/dodoc-media.js @@ -199,7 +199,7 @@ var dodocMedia = (function() { dev.logverbose(`Number of images in to process in ${pathToFile} is ${numberOfImagesToProcess}`); // ask ffmpeg to make a video from the cache images - var proc = new ffmpeg({ "source" : pathToFile + '/%*.jpeg'}) + var proc = new ffmpeg({ "source" : path.join(pathToFile, '%*.jpeg') }) // using 12 fps .withFpsInput(frameRate) .withVideoCodec('libvpx') diff --git a/main.js b/main.js index efafc6f7b..7610a0a2f 100644 --- a/main.js +++ b/main.js @@ -54,7 +54,7 @@ function createWindow() { height: windowState.bounds && windowState.bounds.height || 800, backgroundColor: '#EBEBEB', - icon: __dirname + '/build/icons/512x512.png', + icon: path.join(__dirname, 'build', 'icons', '512x512.png'), show: false, webPreferences: {