mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-21 10:16:32 +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) {
|
exports.default = function(context) {
|
||||||
if (['windows', 'mac'].includes(context.platform.name)) {
|
if (['windows', 'mac'].includes(context.platform.name)) {
|
||||||
cp.execFileSync(
|
cp.execFileSync(
|
||||||
'bash',
|
'npx',
|
||||||
['./node_modules/.bin/electron-rebuild', '--types', 'dev', '--arch', context.arch],
|
['electron-rebuild', '--types', 'dev', '--arch', context.arch],
|
||||||
);
|
);
|
||||||
rimraf.sync('generated');
|
rimraf.sync('generated');
|
||||||
cp.execFileSync(
|
cp.execFileSync(
|
||||||
'bash',
|
'npx',
|
||||||
['./node_modules/.bin/webpack'],
|
['webpack'],
|
||||||
{
|
{
|
||||||
env: {
|
env: {
|
||||||
...process.env,
|
...process.env,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user