diff --git a/packages/electron-builder/src/publish/PublishManager.ts b/packages/electron-builder/src/publish/PublishManager.ts index ed8bd39fd88..c8484820028 100644 --- a/packages/electron-builder/src/publish/PublishManager.ts +++ b/packages/electron-builder/src/publish/PublishManager.ts @@ -115,7 +115,7 @@ export class PublishManager { getOrCreatePublisher(publishConfig: PublishConfiguration, buildInfo: BuildInfo): Publisher | null { let publisher = this.nameToPublisher.get(publishConfig.provider) if (publisher == null) { - publisher = createPublisher(buildInfo, publishConfig, this.publishOptions, this.isPublishOptionGuessed) + publisher = createPublisher(buildInfo, publishConfig, this.publishOptions) this.nameToPublisher.set(publishConfig.provider, publisher) } return publisher @@ -242,12 +242,12 @@ async function writeUpdateInfo(event: ArtifactCreated, _publishConfigs: Array (2 * 3600 * 1000)) { - const message = `Release with tag ${this.tag} published at ${publishedAt.toString()}, more than 2 hours ago` - if (this.isPublishOptionGuessed) { - warn(message) - return null - } - else { - throw new Error(message) - } + // https://github.com/electron-userland/electron-builder/issues/1183#issuecomment-275867187 + warn(`Release with tag ${this.tag} published at ${publishedAt.toString()}, more than 2 hours ago`) + return null } return release }