fixed ARM macOS builds - fixes #6201

This commit is contained in:
Eugene Pankov 2022-04-19 13:31:50 +02:00
parent 9a08bf8782
commit 4a82294741
No known key found for this signature in database
GPG Key ID: 5896FCBBDD1CF4F4

View File

@ -3,7 +3,11 @@ const rebuild = require('electron-rebuild').default
const path = require('path')
const vars = require('./vars')
process.env.ARCH = (process.env.ARCH || process.arch) === 'arm' ? 'armv7l' : process.arch
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
}
let lifecycles = []
for (let dir of ['app', 'tabby-core', 'tabby-local', 'tabby-ssh', 'tabby-terminal']) {