diff --git a/src/targets/nsis.ts b/src/targets/nsis.ts index a684d63d464..41e46ef963f 100644 --- a/src/targets/nsis.ts +++ b/src/targets/nsis.ts @@ -204,14 +204,20 @@ export default class NsisTarget extends TargetEx { const publishConfigs = await this.publishConfigs if (publishConfigs != null) { + const writtenChannels = new Set() let sha2: string | null = null for (let publishConfig of publishConfigs) { - if (publishConfig.provider === "generic") { + if (publishConfig.provider === "generic" || publishConfig.provider === "github") { if (sha2 == null) { sha2 = await sha256(installerPath) } const channel = (publishConfig).channel || "latest" + if (writtenChannels.has(channel)) { + continue + } + writtenChannels.add(channel) + await writeFile(path.join(this.outDir, `${channel}.yml`), safeDump({ version: version, path: installerFilename,