Use correct environment variables in new windows build script

This commit is contained in:
murgatroid99 2020-02-11 15:20:52 -08:00
parent 8d0e476ebf
commit 54e81fdd1e
1 changed files with 6 additions and 6 deletions

View File

@ -45,13 +45,13 @@ if "%RUNTIME%"=="electron" (
set "npm_config_disturl=https://atom.io/download/electron" set "npm_config_disturl=https://atom.io/download/electron"
) )
call .\node_modules\.bin\node-pre-gyp.cmd configure build --target=%%v --target_arch=%%a && goto :EOF call .\node_modules\.bin\node-pre-gyp.cmd configure build --target=%VERSION% --target_arch=%ARCH% && goto :EOF
@rem Try again after removing openssl headers @rem Try again after removing openssl headers
rmdir "%USERPROFILE%\.node-gyp\%%v\include\node\openssl" /S /Q rmdir "%USERPROFILE%\.node-gyp\%VERSION%\include\node\openssl" /S /Q
rmdir "%USERPROFILE%\.node-gyp\iojs-%%v\include\node\openssl" /S /Q rmdir "%USERPROFILE%\.node-gyp\iojs-%VERSION%\include\node\openssl" /S /Q
rmdir "%USERPROFILE%\AppData\Local\node-gyp\cache\%%v\include\node\openssl" /S /Q rmdir "%USERPROFILE%\AppData\Local\node-gyp\cache\%VERSION%\include\node\openssl" /S /Q
rmdir "%USERPROFILE%\AppData\Local\node-gyp\cache\iojs-%%v\include\node\openssl" /S /Q rmdir "%USERPROFILE%\AppData\Local\node-gyp\cache\iojs-%VERSION%\include\node\openssl" /S /Q
call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%VERSION% --target_arch=%ARCH% || goto :error
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error