mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-20 05:17:18 +00:00
18 lines
578 B
JavaScript
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']
|
|
);
|
|
}
|
|
}
|