Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MakerRpm

Hierarchy

Implements

  • IForgeMaker

Index

Constructors

constructor

  • new MakerRpm(configFetcher?: undefined | C | function, providedPlatforms?: ForgePlatform[] | undefined): MakerRpm
  • Parameters

    • Optional configFetcher: undefined | C | function
    • Optional providedPlatforms: ForgePlatform[] | undefined

    Returns MakerRpm

Properties

__isElectronForgeMaker

__isElectronForgeMaker: true

config

defaultPlatforms

defaultPlatforms: ForgePlatform[] = ['linux']

name

name: string = "rpm"

Accessors

platforms

  • get platforms(): ForgePlatform[]
  • Returns ForgePlatform[]

Methods

ensureDirectory

  • ensureDirectory(dir: string): Promise<void>
  • Ensures the directory exists and is forced to be empty.

    I.e. If the directory already exists it is deleted and recreated, this is a destructive operation

    Parameters

    • dir: string

    Returns Promise<void>

ensureFile

  • ensureFile(file: string): Promise<void>
  • Ensures the path to the file exists and the file does not exist

    I.e. If the file already exists it is deleted and the path created

    Parameters

    • file: string

    Returns Promise<void>

externalBinariesExist

  • externalBinariesExist(binaries: string[]): boolean
  • Checks if the specified binaries exist, which are required for the maker to be used.

    Parameters

    • binaries: string[]

    Returns boolean

isInstalled

  • isInstalled(module: string): boolean
  • Checks if the given module is installed, used for testing if optional dependencies are installed or not

    Parameters

    • module: string

    Returns boolean

isSupportedOnCurrentPlatform

  • isSupportedOnCurrentPlatform(): boolean

make

  • make(__namedParameters: object): Promise<any>
  • Parameters

    • __namedParameters: object
      • dir: string
      • makeDir: string
      • targetArch: "ia32" | "x64" | "armv7l" | "arm64" | "arm" | "all"

    Returns Promise<any>

prepareConfig

  • prepareConfig(targetArch: ForgeArch): void
  • Parameters

    • targetArch: ForgeArch

    Returns void