Update build-native.js

This commit is contained in:
Jai A P 2022-04-23 14:05:44 +05:30 committed by GitHub
parent b6d0bd2d43
commit 7c5e136c31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 = []