Set msvs_version to 2019 when rebuilding

Change-type: patch
This commit is contained in:
Alexis Svinartchouk 2021-03-22 16:04:32 +01:00
parent 6ece32c546
commit 3730efd350

View File

@ -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(