mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Fix beforeBuild.js script to also work on mac
Change-type: patch
This commit is contained in:
parent
0849d4f435
commit
c3eb8c7b56
@ -8,13 +8,13 @@ const process = require('process');
|
||||
exports.default = function(context) {
|
||||
if (['windows', 'mac'].includes(context.platform.name)) {
|
||||
cp.execFileSync(
|
||||
'bash',
|
||||
['./node_modules/.bin/electron-rebuild', '--types', 'dev', '--arch', context.arch],
|
||||
'npx',
|
||||
['electron-rebuild', '--types', 'dev', '--arch', context.arch],
|
||||
);
|
||||
rimraf.sync('generated');
|
||||
cp.execFileSync(
|
||||
'bash',
|
||||
['./node_modules/.bin/webpack'],
|
||||
'npx',
|
||||
['webpack'],
|
||||
{
|
||||
env: {
|
||||
...process.env,
|
||||
|
Loading…
x
Reference in New Issue
Block a user