From 81b5c67a3b63913d1e51f3512fdcc95f57734c1c Mon Sep 17 00:00:00 2001 From: Alexis Svinartchouk Date: Mon, 15 Feb 2021 13:30:49 +0100 Subject: [PATCH] Fix beforeBuild.js script to also work on mac Change-type: patch --- beforeBuild.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/beforeBuild.js b/beforeBuild.js index 166e6fc9..3d716b32 100644 --- a/beforeBuild.js +++ b/beforeBuild.js @@ -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,