跳到内容

electron builder.Interface.AppXOptions

Electron-Builder / electron-builder / AppXOptions

继承自

属性

addAutoLaunchExtension?

readonly optional addAutoLaunchExtension: boolean

是否添加自动启动扩展。如果依赖项中存在 electron-winstore-auto-launch,则默认为 true


applicationId?

readonly optional applicationId: string

应用程序 ID。默认为 identityName。此字符串包含用句点分隔的字母数字字段。每个字段必须以 ASCII 字母字符开头。


artifactName?

readonly optional artifactName: null | string

制品文件名模板

继承自

TargetSpecificOptions.artifactName


backgroundColor?

readonly optional backgroundColor: null | string

应用磁贴的背景颜色。请参阅 Visual Elements

默认值

#464646

customExtensionsPath?

readonly optional customExtensionsPath: string

要包含在 appmanifest.xml 中的自定义扩展 xml 的相对路径。


customManifestPath?

readonly optional customManifestPath: string

(高级选项)位于构建资源目录中的自定义 appmanifest.xml 的相对路径(文件名无关紧要,将被重命名)。支持以下模板宏

  • ${publisher}
  • ${publisherDisplayName}
  • ${version}
  • ${applicationId}
  • ${identityName}
  • ${executable}
  • ${displayName}
  • ${description}
  • ${backgroundColor}
  • ${logo}
  • ${square150x150Logo}
  • ${square44x44Logo}
  • ${lockScreen}
  • ${defaultTile}
  • ${splashScreen}
  • ${arch}
  • ${resourceLanguages}
  • ${extensions}
  • ${minVersion}
  • ${maxVersionTested}

displayName?

readonly optional displayName: null | string

可以向用户显示的友好名称。对应于 Properties.DisplayName。默认为应用程序产品名称。


identityName?

readonly optional identityName: null | string

名称。对应于 Identity.Name。默认为应用程序名称


languages?

readonly optional languages: null | string | string[]

将在 Windows 应用商店中列出的支持的语言列表。第一个条目(索引 0)将是默认语言。如果省略,则默认为 en-US。


maxVersionTested?

readonly optional maxVersionTested: null | string

在 appx manifest.xml 中设置 MaxVersionTested 字段

默认值

arch === Arch.arm64 ? "10.0.16299.0" : "10.0.14316.0"

minVersion?

readonly optional minVersion: null | string

在 appx manifest.xml 中设置 MinVersion 字段

默认值

arch === Arch.arm64 ? "10.0.16299.0" : "10.0.14316.0"

publish?

optional publish: Publish

继承自

TargetSpecificOptions.publish


publisher?

readonly optional publisher: null | string

Windows 应用商店发布者。如果 AppX 是为测试而构建的,则不使用。请参阅下面的AppX 包代码签名


publisherDisplayName?

readonly optional publisherDisplayName: null | string

可以向用户显示的发布者的友好名称。对应于 Properties.PublisherDisplayName。默认为应用程序元数据中的公司名称。


setBuildNumber?

readonly optional setBuildNumber: boolean

是否设置构建号。请参阅 https://github.com/electron-userland/electron-builder/issues/3875

默认值

false

showNameOnTiles?

readonly optional showNameOnTiles: boolean

是否在“开始”屏幕上的磁贴图像顶部叠加应用名称。默认为 false。(https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-uap-shownameontiles) 在依赖项中。

默认值

false