Skip to content

Commit

Permalink
fix(arm64): set RPM architecture as aarch64 in name (#7466)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkroepke authored Mar 16, 2023
1 parent 49e4c54 commit 1342f87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/selfish-games-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"builder-util": patch
---

fix(arm64): use RPM architecture `aarch64` in name
2 changes: 1 addition & 1 deletion packages/builder-util/src/arch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function toLinuxArchString(arch: Arch, targetName: string): string {
case Arch.armv7l:
return targetName === "snap" || targetName === "deb" ? "armhf" : targetName === "flatpak" ? "arm" : "armv7l"
case Arch.arm64:
return targetName === "pacman" || targetName === "flatpak" ? "aarch64" : "arm64"
return targetName === "pacman" || targetName === "rpm" || targetName === "flatpak" ? "aarch64" : "arm64"

default:
throw new Error(`Unsupported arch ${arch}`)
Expand Down

0 comments on commit 1342f87

Please # to comment.