Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ForgeUtils

Index

Constructors

Properties

getElectronVersion: (dir: string, packageJSON: PackageJSONWithDeps) => Promise<string> = getElectronVersion

Type declaration

    • (dir: string, packageJSON: PackageJSONWithDeps): Promise<string>
    • Parameters

      • dir: string
      • packageJSON: PackageJSONWithDeps

      Returns Promise<string>

hasYarn: () => boolean = hasYarn

Type declaration

    • (): boolean
    • Returns boolean

rebuildHook: (buildPath: string, electronVersion: string, platform: string, arch: string, config?: Partial<RebuildOptions>) => Promise<void> = rebuildHook

Type declaration

    • (buildPath: string, electronVersion: string, platform: string, arch: string, config?: Partial<RebuildOptions>): Promise<void>
    • Parameters

      • buildPath: string
      • electronVersion: string
      • platform: string
      • arch: string
      • config: Partial<RebuildOptions> = {}

      Returns Promise<void>

yarnOrNpmSpawn: (args?: CrossSpawnArgs, opts?: CrossSpawnOptions) => Promise<string> = yarnOrNpmSpawn

Type declaration

    • (args?: CrossSpawnArgs, opts?: CrossSpawnOptions): Promise<string>
    • Parameters

      • Optional args: CrossSpawnArgs
      • Optional opts: CrossSpawnOptions

      Returns Promise<string>

Methods

  • fromBuildIdentifier<T>(map: BuildIdentifierMap<T>): BuildIdentifierConfig<T>
  • Helper for creating a dynamic config value that will get its real value based on the "buildIdentifier" in your Forge config.

    Usage: fromBuildIdentifier({ stable: 'App', beta: 'App Beta' })

    Type parameters

    • T

    Parameters

    • map: BuildIdentifierMap<T>

    Returns BuildIdentifierConfig<T>