Skip to content

Commit

Permalink
Merge pull request #918 from murgatroid99/windows_build_fix
Browse files Browse the repository at this point in the history
Delete another directory in Windows build script
  • Loading branch information
murgatroid99 committed Jun 19, 2019
2 parents b4e24be + aed0706 commit c08cb62
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
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

0 comments on commit c08cb62

Please sign in to comment.