From 109a49e89c1ccd6ab8aa5464c29a0f8d2cfed3ff Mon Sep 17 00:00:00 2001 From: Edgar Silva Date: Thu, 10 Jul 2014 11:46:05 -0500 Subject: [PATCH 1/2] WIP: Debugging x64 version not compiling in appveyor latest node.js stable --- appveyor.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index 2a54a74..7802f89 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -15,7 +15,7 @@ install: - cmd: ECHO "APPVEYOR_REPO_COMMIT_MESSAGE ->" - cmd: ECHO %APPVEYOR_REPO_COMMIT_MESSAGE% - cmd: SET COMMIT_MSG="%APPVEYOR_REPO_COMMIT_MESSAGE%" - - cmd: SET PATH=c:\nodist\bin;%PATH% + - cmd: SET PATH=C:\nodist\bin;%PATH% - cmd: SET PUBLISH_BINARY=false # Check to verify the branch is the same than latest tag, if so # then we publish the binaries if everything else is successful. @@ -35,8 +35,7 @@ install: - cmd: SET NODIST_X64=0 - cmd: call nodist update - cmd: call nodist stable - - cmd: npm install node-gyp -g - - cmd: npm install aws-sdk + - cmd: npm install -g node-gyp # to run your custom scripts instead of automatic MSBuild build_script: @@ -53,8 +52,9 @@ build_script: - cmd: ECHO "INSTALLING x64 node.js:" # We add newest MSBuild so we can use the correct libs for the x64 version - cmd: SET PATH=C:\Program Files (x86)\MSBuild\12.0\bin\;%PATH% - - cmd: SET PATH=c:\python27;%PATH% + - cmd: SET PATH=C:\python27;%PATH% - cmd: set NODIST_X64=1 + - cmd: call nodist update - cmd: call nodist stable - cmd: npm install -g node-gyp - cmd: ECHO "BUILDING x64 version:" From f652da093f65c795157ba9c8b4b8984a4876473a Mon Sep 17 00:00:00 2001 From: Edgar Silva Date: Thu, 10 Jul 2014 12:17:18 -0500 Subject: [PATCH 2/2] Fixes tests and appveyor issue with x64 version not compiling. --- serialport.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/serialport.js b/serialport.js index a69338d..94f7463 100644 --- a/serialport.js +++ b/serialport.js @@ -362,7 +362,8 @@ function SerialPortFactory() { self.emit("close"); // clean up all other items - var fd = self.fd; + fd = self.fd; + try { factory.SerialPortBinding.close(fd, function (err) { }); @@ -382,7 +383,7 @@ function SerialPortFactory() { if (callback) { callback(); } - } + }; SerialPort.prototype.close = function (callback) {