From ec5da2bdc1c58c229cbc6a6749be53fb3e5a5fe1 Mon Sep 17 00:00:00 2001 From: deepak1556 Date: Tue, 24 Nov 2020 23:03:26 -0800 Subject: [PATCH] build: rebuild keytar for arm64 Fixes https://github.com/microsoft/vscode/issues/111271 --- build/azure-pipelines/darwin/product-build-darwin.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/build/azure-pipelines/darwin/product-build-darwin.yml b/build/azure-pipelines/darwin/product-build-darwin.yml index 478365c7bbd..24d0611c76c 100644 --- a/build/azure-pipelines/darwin/product-build-darwin.yml +++ b/build/azure-pipelines/darwin/product-build-darwin.yml @@ -114,9 +114,14 @@ steps: - script: | set -e + export npm_config_arch=$(VSCODE_ARCH) + export npm_config_node_gyp=$(which node-gyp) + export npm_config_build_from_source=true export SDKROOT=/Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk ls /Applications/Xcode_12.2.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/ yarn electron-rebuild + cd ./node_modules/keytar + node-gyp rebuild displayName: Rebuild native modules for ARM64 condition: eq(variables['VSCODE_ARCH'], 'arm64')