etcher/beforeBuild.js
Alexis Svinartchouk 10b028355f Fix ia32 builds for windows
Changelog-entry: Fix ia32 builds for windows
Change-type: patch
2020-06-03 13:54:25 +02:00

18 lines
578 B
JavaScript

'use strict'
const cp = require('child_process')
// Rebuild native modules for ia32 and run webpack again for the ia32 part of windows packages
exports.default = function(context) {
if (context.platform.name === 'windows') {
cp.execFileSync(
'bash',
['./node_modules/.bin/electron-rebuild', '--types', 'dev', '--arch', context.arch]
);
cp.execFileSync(
'bash',
['./node_modules/.bin/webpack']
);
}
}