diff --git a/binding.gyp b/binding.gyp index 241f117..342b273 100644 --- a/binding.gyp +++ b/binding.gyp @@ -1,7 +1,7 @@ { 'targets': [ { - 'target_name': 'binding', + 'target_name': 'bluetooth_hci_socket', 'conditions': [ ['OS=="linux" or OS=="android" or OS=="freebsd"', { 'sources': [ diff --git a/lib/native.js b/lib/native.js index 68c4e79..051c847 100644 --- a/lib/native.js +++ b/lib/native.js @@ -2,7 +2,7 @@ var events = require('events'); var binary = require('node-pre-gyp'); var path = require('path'); -var binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json'))); +var binding_path = binary.find(path.resolve(path.join(__dirname,'../package.json'))); var binding = require(binding_path); var BluetoothHciSocket = binding.BluetoothHciSocket; diff --git a/package.json b/package.json index 43ee21f..86dd06f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bluetooth-hci-socket", - "version": "0.5.2", + "version": "0.5.4", "description": "Bluetooth HCI socket binding for Node.js", "main": "index.js", "repository": { @@ -42,7 +42,7 @@ "test": "jshint lib/*.js" }, "binary": { - "module_name": "binding", + "module_name": "bluetooth_hci_socket", "module_path": "./lib/binding/", "host": "https://github.com/sandeepmistry/node-bluetooth-hci-socket/releases/download/", "package_name": "{module_name}-{version}-{node_abi}-{platform}-{arch}.tar.gz",