跳到内容

electron builder.Class.Platform

Electron-Builder / electron-builder / Platform

构造函数

new Platform()

new Platform(name, buildConfigurationKey, nodeName): Platform

参数

name: string

buildConfigurationKey: string

nodeName: Platform

返回值

Platform

属性

buildConfigurationKey

buildConfigurationKey: string


名称

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