From 11d61a4f1febef73a05a4778a488a53789983733 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sun, 11 Aug 2024 21:23:32 -0300 Subject: [PATCH] feat(tooling): update electron-builder package tooling to support ARM architectures (#898) Co-authored-by: theofficialgman <28281419+theofficialgman@users.noreply.github.com> --- script/electron-builder-linux.yml | 2 +- script/package-electron-builder.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/script/electron-builder-linux.yml b/script/electron-builder-linux.yml index f73156cbadb..77203eb0b46 100644 --- a/script/electron-builder-linux.yml +++ b/script/electron-builder-linux.yml @@ -1,4 +1,4 @@ -artifactName: 'GitHubDesktop-${os}-${version}.${ext}' +artifactName: 'GitHubDesktop-${os}-${arch}-${version}.${ext}' linux: category: 'GNOME;GTK;Development' packageCategory: 'GNOME;GTK;Development' diff --git a/script/package-electron-builder.ts b/script/package-electron-builder.ts index 6292c28b9f4..2f56e73fba5 100644 --- a/script/package-electron-builder.ts +++ b/script/package-electron-builder.ts @@ -10,7 +10,8 @@ const globPromise = promisify(glob) import { getDistPath, getDistRoot } from './dist-info' function getArchitecture() { - switch (process.arch) { + const arch = process.env.npm_config_arch || process.arch + switch (arch) { case 'arm64': return '--arm64' case 'arm':