From 0eccc25088f538bd39cf4a34102abd2ae792c7d2 Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Sun, 11 Aug 2024 21:23:57 -0300 Subject: [PATCH] feat(tooling): update debian package script to support ARM architectures (#898) Co-authored-by: theofficialgman <28281419+theofficialgman@users.noreply.github.com> --- script/package-debian.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/package-debian.ts b/script/package-debian.ts index 9a918473070..b184481843d 100644 --- a/script/package-debian.ts +++ b/script/package-debian.ts @@ -10,7 +10,8 @@ import { getVersion } from '../app/package-info' 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': @@ -107,7 +108,7 @@ export async function packageDebian(): Promise { const oldPath = files[0] - const newFileName = `GitHubDesktop-linux-${getVersion()}.deb` + const newFileName = `GitHubDesktop-linux-${getArchitecture()}-${getVersion()}.deb` const newPath = join(distRoot, newFileName) await rename(oldPath, newPath)