mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-23 11:16:39 +00:00
Update scripts to build universal mac dmgs on the ci
Change-type: patch
This commit is contained in:
parent
c3eb8c7b56
commit
b206483c7c
@ -7,14 +7,15 @@ const process = require('process');
|
||||
// Rebuild native modules for ia32 and run webpack again for the ia32 part of windows packages
|
||||
exports.default = function(context) {
|
||||
if (['windows', 'mac'].includes(context.platform.name)) {
|
||||
const run = context.platform.name === 'windows' ? 'sh' : 'node';
|
||||
cp.execFileSync(
|
||||
'npx',
|
||||
['electron-rebuild', '--types', 'dev', '--arch', context.arch],
|
||||
run,
|
||||
['node_modules/.bin/electron-rebuild', '--types', 'dev', '--arch', context.arch],
|
||||
);
|
||||
rimraf.sync('generated');
|
||||
cp.execFileSync(
|
||||
'npx',
|
||||
['webpack'],
|
||||
run,
|
||||
['node_modules/.bin/webpack'],
|
||||
{
|
||||
env: {
|
||||
...process.env,
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 214ddc7e3d35f7c37424c5a7696e33b10e424f43
|
||||
Subproject commit d1b05ad312e65ea82b1c16b31f5af3c0b5fa2777
|
Loading…
x
Reference in New Issue
Block a user