Skip to content

Commit

Permalink
fix(arm64): fix pacman build, pacman & rpm artifact names (#5304)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwillisf authored Nov 28, 2020
1 parent 289ea27 commit 069eba1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/builder-util/src/arch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function toLinuxArchString(arch: Arch, targetName: string): string {
case Arch.armv7l:
return targetName === "snap" || targetName === "deb" ? "armhf" : "armv7l"
case Arch.arm64:
return "arm64"
return targetName === "pacman" ? "aarch64" : "arm64"

default:
throw new Error(`Unsupported arch ${arch}`)
Expand Down Expand Up @@ -68,5 +68,10 @@ export function getArtifactArchName(arch: Arch, ext: string): string {
archName = "armhf"
}
}
else if (arch === Arch.arm64) {
if (ext === "pacman" || ext === "rpm") {
archName = "aarch64"
}
}
return archName
}

0 comments on commit 069eba1

Please sign in to comment.