跳到内容

electron builder.Interface.PortableOptions

Electron-Builder / electron-builder / PortableOptions

便携选项。

继承自

属性

artifactName?

readonly optional artifactName: null | string

artifact 文件名模板。

继承自

TargetSpecificOptions.artifactName


customNsisBinary?

readonly optional customNsisBinary: null | CustomNsisBinary

允许您提供自己的 makensis,例如支持通过 LogSet 和 LogText 进行调试日志记录的版本。(日志记录还需要选项 debugLogging = true)

继承自

CommonNsisOptions.customNsisBinary


guid?

readonly optional guid: null | string

请参阅 GUID 与应用程序名称

继承自

CommonNsisOptions.guid


publish?

optional publish: Publish

继承自

TargetSpecificOptions.publish


requestExecutionLevel?

readonly optional requestExecutionLevel: "user" | "highest" | "admin"

Windows 的请求执行级别

默认

user

splashImage?

readonly optional splashImage: null | string

在便携式可执行文件解压缩时显示的图像。此图像必须是位图 (.bmp) 图像。


unicode?

readonly optional unicode: boolean

是否创建 Unicode 安装程序

默认

true

继承自

CommonNsisOptions.unicode


unpackDirName?

readonly optional unpackDirName: string | boolean

便携式应用程序资源的解压缩目录。

如果设置为字符串,则它将是 TEMP 目录中的名称。如果显式设置为 false,它将使用 Windows 临时目录 ($PLUGINSDIR),该目录对于每次启动便携式应用程序都是唯一的。

默认为构建的 uuid(在每次构建便携式可执行文件时更改)。


warningsAsErrors?

readonly optional warningsAsErrors: boolean

如果 warningsAsErrorstrue(默认):NSIS 会将警告视为错误。如果 warningsAsErrorsfalse:NSIS 将允许警告。

默认

true

继承自

CommonNsisOptions.warningsAsErrors