From 3730efd350d0875b7bbfcd58b614ca2ab025de4f Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Mon, 22 Mar 2021 16:04:32 +0100 Subject: [PATCH] Set msvs_version to 2019 when rebuilding Change-type: patch --- beforeBuild.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/beforeBuild.js b/beforeBuild.js index 684b64b3..35312b0a 100644 --- a/beforeBuild.js +++ b/beforeBuild.js @@ -11,6 +11,12 @@ exports.default = function(context) { cp.execFileSync( run, ['node_modules/.bin/electron-rebuild', '--types', 'dev', '--arch', context.arch], + { + env: { + ...process.env, + npm_config_msvs_version: '2019', + }, + }, ); rimraf.sync('generated'); cp.execFileSync(