Skip to content

Commit

Permalink
Fix binary selector so that win32-ia32 and win32-x64 both work
Browse files Browse the repository at this point in the history
  • Loading branch information
SavageCore committed Sep 19, 2016
1 parent c1ed19f commit 0b1a306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -14,7 +14,7 @@ if (!version) {
process.exit(1);
}

const binary = platform === 'win32' ? 'ffprobe.exe' : 'ffprobe';
const binary = platform.indexOf('win32') !== -1 ? 'ffprobe.exe' : 'ffprobe';

const ffprobePath = path.resolve(__dirname, '..', platform, binary);

Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@ffprobe-installer/ffprobe",
"version": "1.0.1",
"version": "1.0.2",
"main": "index.js",
"scripts": {
"test": "tape test/*.js",
Expand Down

0 comments on commit 0b1a306

Please sign in to comment.