Skip to content

Commit

Permalink
feat(tooling): update debian package script to support ARM architectu…
Browse files Browse the repository at this point in the history
…res (#898)

Co-authored-by: theofficialgman <28281419+theofficialgman@users.noreply.github.com>
  • Loading branch information
shiftkey and theofficialgman committed Aug 15, 2024
1 parent 503bce2 commit 0a97885
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/package-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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':
Expand Down Expand Up @@ -107,7 +108,7 @@ export async function packageDebian(): Promise<string> {

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)

Expand Down

0 comments on commit 0a97885

Please sign in to comment.