Properly delete Node OpenSSL headers after downloading them

pull/5579/head
Michael Lumish 9 years ago
parent d445fc019f
commit 79a0f0611c
  1. 10
      tools/run_tests/build_node.bat
  2. 9
      tools/run_tests/pre_build_node.bat

@ -27,4 +27,12 @@
@rem (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
@rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
npm install --build-from-source
call npm install --build-from-source
@rem delete the redundant openssl headers
for /f "delims=v" %%v in ('node --version') do (
rmdir "%HOMEDRIVE%%HOMEPATH%\.node-gyp\%%v\include\node\openssl" /S /Q
)
@rem rebuild, because it probably failed the first time
call npm install --build-from-source

@ -28,12 +28,5 @@
@rem OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@rem Expire cache after 1 week
npm update --cache-min 604800
call npm update --cache-min 604800
npm install node-gyp-install
.\node_modules\.bin\node-gyp-install.cmd
@rem delete the redundant openssl headers
for /f "delims=v" %%v in ('node --version') do (
rmdir "%HOMEDRIVE%%HOMEPATH%\.node-gyp\%%v\include\node\openssl" /S /Q
)
Loading…
Cancel
Save