/**
 * This will download the ffprobe binary for the current
 * platform that is running the script.
 */

const ffbinaries=require('ffbinaries');

function download(callback) {
    var dest = __dirname + '/bin';
    var platform = ffbinaries.detectPlatform();
    ffbinaries.downloadFiles(['ffprobe'], {quiet: true, destination: dest}, function (err, data) {
        console.log('Downloading ffprobe binary to '+dest+'.');
        console.log('err', err);
        console.log('data', data);
        callback(err, data);
    });
}

download(function(err, data) {
    if (err) {
        console.log('Downloads failed.');
    } else {
        console.log('Downloads successful.');
    }
});

@@ -138,16 +138,44 @@
 aries');
+%0Aconst path=require('path');
 %0A%0Afuncti
@@ -229,10 +229,20 @@
 e + 
+path.sep + 
 '
-/
 bin'
@@ -324,9 +324,8 @@
 les(
-%5B
 'ffp
@@ -333,25 +333,11 @@
 obe'
-%5D
 , %7B
-quiet: true, 
 dest
@@ -355,17 +355,8 @@
 st%7D,
- function
  (er
@@ -359,24 +359,27 @@
  (err, data)
+ =%3E
  %7B%0A        c

Fix postinstall script to use path.sep.