跳到内容

builder util runtime.Interface.KeygenOptions

Electron-Builder / builder-util-runtime / KeygenOptions

Keygen 选项。 https://keygen.sh/ 定义 KEYGEN_TOKEN 环境变量。

继承自

属性

account

readonly account: string

Keygen 账户的 UUID


channel?

readonly optional channel: null | "stable" | "rc" | "beta" | "alpha" | "dev"

频道。

默认

stable

host?

readonly optional host: string

用于自托管实例的 Keygen host

默认

"api.keygen.sh"

platform?

readonly optional platform: null | string

目标平台。在发布期间通过程序显式设置。


product

readonly product: string

Keygen 产品的 UUID


provider

readonly provider: "keygen"

提供程序。必须是 keygen

覆盖

PublishConfiguration.provider


publishAutoUpdate?

readonly optional publishAutoUpdate: boolean

是否发布自动更新信息文件。

自动更新仅依赖列表中的第一个提供程序(您可以指定多个发布者)。因此,可能不需要为其他配置的提供程序上传元数据文件。但默认情况下将上传。

默认

true

继承自

PublishConfiguration.publishAutoUpdate


requestHeaders?

readonly optional requestHeaders: OutgoingHttpHeaders

任何自定义请求标头

继承自

PublishConfiguration.requestHeaders


timeout?

readonly optional timeout: null | number

请求超时,以毫秒为单位。(默认为 2 分钟;O 被忽略)

默认

120000

继承自

PublishConfiguration.timeout