[Code] fix nodegit patch script (#35588) (#35603)

This commit is contained in:
Fuyao Zhao 2019-04-25 09:49:25 -07:00 committed by GitHub
parent 6e62eeb95d
commit 1c7a8cff8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,7 @@ async function patchNodeGit(config, log, build, platform) {
const downloadPath = build.resolvePathForPlatform(platform, '.nodegit_binaries', packageName);
const extractDir = await downloadAndExtractTarball(downloadUrl, downloadPath, log, 3);
const destination = build.resolvePathForPlatform(platform, 'node_modules/nodegit/build/Release');
const destination = build.resolvePathForPlatform(platform, 'node_modules/@elastic/nodegit/build/Release');
log.debug('Replacing nodegit binaries from ', extractDir);
await deleteAll([destination], log);
await scanCopy({