跳到内容

应用构建器库.类.平台

Electron-Builder / app-builder-lib / Platform

构造函数

new Platform()

new Platform(name, buildConfigurationKey, nodeName): Platform

参数

name: string

buildConfigurationKey: string

nodeName: Platform

返回值

Platform

属性

buildConfigurationKey

buildConfigurationKey: string


name

name: string


nodeName

nodeName: Platform


LINUX

static LINUX: Platform


MAC

static MAC: Platform


WINDOWS

static WINDOWS: Platform

方法

createTarget()

createTarget(type?, …archs?): Map<Platform, Map<Arch, string[]>>

参数

type?: null | string | string[]

• …archs?: Arch[]

返回值

Map<Platform, Map<Arch, string[]>>


toString()

toString(): string

返回值

string


current()

static current(): Platform

返回值

Platform


fromString()

static fromString(name): Platform

参数

name: string

返回值

Platform