Skip to content

Commit c08cb62

Browse files
authored
Merge pull request #918 from murgatroid99/windows_build_fix
Delete another directory in Windows build script
2 parents b4e24be + aed0706 commit c08cb62

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

packages/grpc-native-core/gulpfile.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const installWindows = () => {
4444
return execa('npm', ['install', '--build-from-source'],
4545
{cwd: nativeCoreDir, stdio: 'inherit'}).catch(() =>
4646
del(path.resolve(process.env.USERPROFILE, '.node-gyp', process.versions.node, 'include/node/openssl'), { force: true }).then(() =>
47+
del(path.resolve(process.env.USERPROFILE, 'AppData/Local/node-gyp/cache', process.versions.node, 'include/node/openssl'), { force: true })).then(() =>
4748
execa('npm', ['install', '--build-from-source'],
4849
{cwd: nativeCoreDir, stdio: 'inherit'})
4950
));

packages/grpc-native-core/tools/run_tests/artifacts/build_artifact_node.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ for %%a in (%arch_list%) do (
3333
@rem Try again after removing openssl headers
3434
rmdir "%USERPROFILE%\.node-gyp\%%v\include\node\openssl" /S /Q
3535
rmdir "%USERPROFILE%\.node-gyp\iojs-%%v\include\node\openssl" /S /Q
36+
rmdir "%USERPROFILE%\AppData\Local\node-gyp\cache\%%v\include\node\openssl" /S /Q
37+
rmdir "%USERPROFILE%\AppData\Local\node-gyp\cache\iojs-%%v\include\node\openssl" /S /Q
3638
call .\node_modules\.bin\node-pre-gyp.cmd build package --target=%%v --target_arch=%%a || goto :error
3739

3840
xcopy /Y /I /S build\stage\* %ARTIFACTS_OUT%\ || goto :error

tools/release/kokoro-electron.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ call nvm use 10
2222

2323
call npm install -g npm
2424
@rem https://github.com/mapbox/node-pre-gyp/issues/362
25-
call npm install -g node-gyp
25+
call npm install -g node-gyp@3
2626

2727
cd /d %~dp0
2828
cd ..\..

tools/release/kokoro-electron.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ nvm install 10
2121
nvm use 10
2222
npm install -g npm
2323
# https://github.com/mapbox/node-pre-gyp/issues/362
24-
npm install -g node-gyp
24+
npm install -g node-gyp@3
2525

2626
set -ex
2727
cd $(dirname $0)/../..

tools/release/kokoro-nodejs.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ call nvm use 10
2222

2323
call npm install -g npm
2424
@rem https://github.com/mapbox/node-pre-gyp/issues/362
25-
call npm install -g node-gyp
25+
call npm install -g node-gyp@3
2626

2727
cd /d %~dp0
2828
cd ..\..

0 commit comments

Comments
 (0)