Skip to content

Commit

Permalink
feat(tooling): update redhat 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 Nov 11, 2024
1 parent d44142c commit 258f95b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/package-redhat.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 'aarch64'
case 'arm':
Expand Down Expand Up @@ -103,7 +104,7 @@ export async function packageRedhat(): Promise<string> {

const oldPath = files[0]

const newFileName = `GitHubDesktop-linux-${getVersion()}.rpm`
const newFileName = `GitHubDesktop-linux-${getArchitecture()}-${getVersion()}.rpm`
const newPath = join(distRoot, newFileName)
await rename(oldPath, newPath)

Expand Down

0 comments on commit 258f95b

Please sign in to comment.