Skip to content

Commit

Permalink
Merge pull request derhuerst#2 from noblesamurai/master
Browse files Browse the repository at this point in the history
Support for linux x64.
  • Loading branch information
joshwnj committed Oct 20, 2015
2 parents 41c6ee3 + 1a3dfa0 commit d88d60f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 10 deletions.
Binary file added bin/linux/x64/ffprobe
Binary file not shown.
25 changes: 15 additions & 10 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
//
// With credits to https://github.com/eugeneware/ffmpeg-static
//
var os = require('os')
var path = require('path')
var os = require('os');
var path = require('path');

var platform = os.platform()
if (platform !== 'darwin') {
console.error('Unsupported platform.')
process.exit(1)
var platform = os.platform();
if (platform !== 'darwin' && platform !=='linux') {
console.error('Unsupported platform.');
process.exit(1);
}

var arch = os.arch()
var arch = os.arch();
if (platform === 'darwin' && arch !== 'x64') {
console.error('Unsupported architecture.')
process.exit(1)
console.error('Unsupported architecture.');
process.exit(1);
}

if (platform === 'linux' && arch !== 'x64') {
console.error('Unsupported architecture.');
process.exit(1);
}

var ffprobePath = path.join(
Expand All @@ -22,6 +27,6 @@ var ffprobePath = path.join(
platform,
arch,
platform === 'win32' ? 'ffprobe.exe' : 'ffprobe'
)
);

exports.path = ffprobePath;

0 comments on commit d88d60f

Please sign in to comment.