mirror of https://github.com/grpc/grpc-node.git
Merge pull request #918 from murgatroid99/windows_build_fix
Delete another directory in Windows build script
This commit is contained in:
commit
c08cb62d97
|
|
@ -44,6 +44,7 @@ const installWindows = () => {
|
|||
return execa('npm', ['install', '--build-from-source'],
|
||||
{cwd: nativeCoreDir, stdio: 'inherit'}).catch(() =>
|
||||
del(path.resolve(process.env.USERPROFILE, '.node-gyp', process.versions.node, 'include/node/openssl'), { force: true }).then(() =>
|
||||
del(path.resolve(process.env.USERPROFILE, 'AppData/Local/node-gyp/cache', process.versions.node, 'include/node/openssl'), { force: true })).then(() =>
|
||||
execa('npm', ['install', '--build-from-source'],
|
||||
{cwd: nativeCoreDir, stdio: 'inherit'})
|
||||
));
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ for %%a in (%arch_list%) do (
|
|||
@rem Try again after removing openssl headers
|
||||
rmdir "%USERPROFILE%\.node-gyp\%%v\include\node\openssl" /S /Q
|
||||
rmdir "%USERPROFILE%\.node-gyp\iojs-%%v\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\iojs-%%v\include\node\openssl" /S /Q
|
||||
call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error
|
||||
|
||||
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ call nvm use 10
|
|||
|
||||
call npm install -g npm
|
||||
@rem https://github.com/mapbox/node-pre-gyp/issues/362
|
||||
call npm install -g node-gyp
|
||||
call npm install -g node-gyp@3
|
||||
|
||||
cd /d %~dp0
|
||||
cd ..\..
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ nvm install 10
|
|||
nvm use 10
|
||||
npm install -g npm
|
||||
# https://github.com/mapbox/node-pre-gyp/issues/362
|
||||
npm install -g node-gyp
|
||||
npm install -g node-gyp@3
|
||||
|
||||
set -ex
|
||||
cd $(dirname $0)/../..
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ call nvm use 10
|
|||
|
||||
call npm install -g npm
|
||||
@rem https://github.com/mapbox/node-pre-gyp/issues/362
|
||||
call npm install -g node-gyp
|
||||
call npm install -g node-gyp@3
|
||||
|
||||
cd /d %~dp0
|
||||
cd ..\..
|
||||
|
|
|
|||
Loading…
Reference in New Issue