diff --git a/packages/builder-util/src/arch.ts b/packages/builder-util/src/arch.ts index 7c358e3ff6a..cc999a767fc 100644 --- a/packages/builder-util/src/arch.ts +++ b/packages/builder-util/src/arch.ts @@ -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}`) @@ -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 } \ No newline at end of file