From 7c5e136c31ced24376a14bebc6815b9b74162a6a Mon Sep 17 00:00:00 2001 From: Jai A P Date: Sat, 23 Apr 2022 14:05:44 +0530 Subject: [PATCH] Update build-native.js --- scripts/build-native.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/scripts/build-native.js b/scripts/build-native.js index ba14f9e1..33f9f49a 100755 --- a/scripts/build-native.js +++ b/scripts/build-native.js @@ -3,10 +3,9 @@ const rebuild = require('electron-rebuild').default const path = require('path') const vars = require('./vars') -if (process.platform === 'win32' || process.platform === 'linux') { - process.env.ARCH = (process.env.ARCH || process.arch) === 'arm' ? 'armv7l' : process.arch -} else { - process.env.ARCH ??= process.arch +process.env.ARCH = process.env.ARCH || process.arch +if (process.env.ARCH === 'arm') { + process.env.ARCH = 'armv7l' } let lifecycles = []