Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Delete another directory in Windows build script #918

Merged
merged 8 commits into from
Jun 19, 2019
Merged
1 change: 1 addition & 0 deletions packages/grpc-native-core/gulpfile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'})
));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tools/release/kokoro-electron.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..\..
Expand Down
2 changes: 1 addition & 1 deletion tools/release/kokoro-electron.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)/../..
Expand Down
2 changes: 1 addition & 1 deletion tools/release/kokoro-nodejs.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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 ..\..
Expand Down