Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Publisher<C>

Type parameters

  • C

Hierarchy

  • Publisher

Implements

  • IForgePublisher

Index

Constructors

constructor

  • new Publisher(config: C, providedPlatforms?: ForgePlatform[]): Publisher

Properties

__isElectronForgePublisher

__isElectronForgePublisher: true

config

config: C

Optional defaultPlatforms

defaultPlatforms: ForgePlatform[]

Abstract name

name: string

Accessors

platforms

  • get platforms(): ("darwin" | "mas" | "win32" | "linux")[]
  • Returns ("darwin" | "mas" | "win32" | "linux")[]

Methods

publish

  • Publishers must implement this method to publish the artifacts returned from make calls. If any errors occur you must throw them, failing silently or simply logging will not propagate issues up to forge.

    Please note for a given version publish will be called multiple times, once for each set of "platform" and "arch". This means if you are publishing darwin and win32 artifacts to somewhere like GitHub on the first publish call you will have to create the version on GitHub and the second call will just be appending files to the existing version.

    Parameters

    Returns Promise<void>