2
2
mirror of https://github.com/Llewellynvdm/nativefier.git synced 2024-11-11 07:41:04 +00:00

inferOs: Add support for arm64 (#1037)

Tested on a Pinebook Pro running elementary OS
This commit is contained in:
Cassidy James Blaede 2020-08-29 14:12:22 -06:00 committed by GitHub
parent e24b22ea7f
commit 1c06af23fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,7 +19,7 @@ export function inferPlatform(): string {
export function inferArch(): string {
const arch = os.arch();
if (arch !== 'ia32' && arch !== 'x64' && arch !== 'arm') {
if (arch !== 'ia32' && arch !== 'x64' && arch !== 'arm' && arch !== 'arm64') {
throw new Error(`Incompatible architecture ${arch} detected`);
}
log.debug('Inferred arch', arch);