diff --git a/packages/electron-builder-lib/src/publish/updateInfoBuilder.ts b/packages/electron-builder-lib/src/publish/updateInfoBuilder.ts index 954cf044a30..b6eb4dd19c2 100644 --- a/packages/electron-builder-lib/src/publish/updateInfoBuilder.ts +++ b/packages/electron-builder-lib/src/publish/updateInfoBuilder.ts @@ -1,5 +1,5 @@ import BluebirdPromise from "bluebird-lst" -import { Arch, hashFile, safeStringifyJson, serializeToYaml, log } from "builder-util" +import { Arch, hashFile, log, safeStringifyJson, serializeToYaml } from "builder-util" import { GenericServerOptions, GithubOptions, PublishConfiguration, UpdateInfo, WindowsUpdateInfo } from "builder-util-runtime" import { outputFile, outputJson, readFile } from "fs-extra-p" import { Lazy } from "lazy-val" @@ -57,8 +57,14 @@ function computeChannelNames(packager: PlatformPackager, publishConfig: Pub function getUpdateInfoFileName(channel: string, packager: PlatformPackager, arch: Arch | null): string { const osSuffix = packager.platform === Platform.WINDOWS ? "" : `-${packager.platform.buildConfigurationKey}` - const archSuffix = (arch != null && arch !== Arch.x64 && packager.platform === Platform.LINUX) ? `-${Arch[arch]}` : "" - return `${channel}${osSuffix}${archSuffix}.yml` + return `${channel}${osSuffix}${getArchPrefixForUpdateFile(arch, packager)}.yml` +} + +function getArchPrefixForUpdateFile(arch: Arch | null, packager: PlatformPackager) { + if (arch == null || arch === Arch.x64 || packager.platform !== Platform.LINUX) { + return "" + } + return arch === Arch.armv7l ? "arm" : Arch[arch] } export interface UpdateInfoFileTask {