diff --git a/package.json b/package.json index 08c0e2e7..6bfcc1bb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "name": "adbkit", - "version": "2.11.1", + "version": "2.11.2", + "versionComment": "This is a custom version of the library", "description": "A pure Node.js client for the Android Debug Bridge.", "keywords": [ "adb", @@ -27,6 +28,7 @@ "url": "https://github.com/openstf/adbkit.git" }, "scripts": { + "build": "coffee -c --no-header -b -o lib src", "postpublish": "grunt clean", "prepublish": "grunt test coffee", "test": "grunt test" @@ -61,4 +63,4 @@ "engines": { "node": ">= 0.10.4" } -} +} \ No newline at end of file diff --git a/src/adb/connection.coffee b/src/adb/connection.coffee index 03ba07b8..43967266 100644 --- a/src/adb/connection.coffee +++ b/src/adb/connection.coffee @@ -40,7 +40,7 @@ class Connection extends EventEmitter startServer: (callback) -> debug "Starting ADB server via '#{@options.bin} start-server'" - return this._exec ['start-server'], {}, callback + return this._exec ["-P #{@options.port}", "start-server"], {}, callback _exec: (args, options, callback) -> debug "CLI: #{@options.bin} #{args.join ' '}"