Fix electron artifact builds
diff --git a/binding.gyp b/binding.gyp
index fd48da8..d9461db 100644
--- a/binding.gyp
+++ b/binding.gyp
@@ -54,7 +54,7 @@
           'GRPC_UV'
         ]
       }],
-      ['runtime=="electron"', {
+      ['OS!="win" && runtime=="electron"', {
         "defines": [
           'OPENSSL_NO_THREADS'
         ]
diff --git a/templates/binding.gyp.template b/templates/binding.gyp.template
index 7570aa5..b058547 100644
--- a/templates/binding.gyp.template
+++ b/templates/binding.gyp.template
@@ -56,7 +56,7 @@
             'GRPC_UV'
           ]
         }],
-        ['runtime=="electron"', {
+        ['OS!="win" && runtime=="electron"', {
           "defines": [
             'OPENSSL_NO_THREADS'
           ]
diff --git a/tools/run_tests/artifacts/build_artifact_node.bat b/tools/run_tests/artifacts/build_artifact_node.bat
index f1a5b8a..0a2bc4b 100644
--- a/tools/run_tests/artifacts/build_artifact_node.bat
+++ b/tools/run_tests/artifacts/build_artifact_node.bat
@@ -51,7 +51,7 @@
 )
 
 for %%v in (%electron_versions%) do (
-  call .\node_modules\.bin\node-pre-gyp.cmd configure rebuild package testpackage --runtime=electron --target=%%v --target_arch=%1 || goto :error
+  cmd /V /C "set "HOME=%HOMEDRIVE%%HOMEPATH%\electron-gyp" && call .\node_modules\.bin\node-pre-gyp.cmd configure rebuild package testpackage --runtime=electron --target=%%v --target_arch=%1 --disturl=https://atom.io/download/electron" || goto :error
 
   xcopy /Y /I /S build\stage\* artifacts\ || goto :error
 )
diff --git a/tools/run_tests/artifacts/build_artifact_node.sh b/tools/run_tests/artifacts/build_artifact_node.sh
index bb662d2..47b1f33 100755
--- a/tools/run_tests/artifacts/build_artifact_node.sh
+++ b/tools/run_tests/artifacts/build_artifact_node.sh
@@ -52,8 +52,8 @@
   cp -r build/stage/* artifacts/
 done
 
-for version in ${node_versions[@]}
+for version in ${electron_versions[@]}
 do
-  HOME=~/.electron-gyp ./node_modules/.bin/node-pre-gyp configure rebuild package testpackage --runtime=electron --target=$version --target_arch=$NODE_TARGET_ARCH
+  HOME=~/.electron-gyp ./node_modules/.bin/node-pre-gyp configure rebuild package testpackage --runtime=electron --target=$version --target_arch=$NODE_TARGET_ARCH --disturl=https://atom.io/download/electron
   cp -r build/stage/* artifacts/
 done