The top-level mac key contains set of options instructing electron-builder on how it should build macOS targets. These options applicable for any macOS target.

  • category String - The application category type, as shown in the Finder via View -> Arrange by Application Category when viewing the Applications directory.

    For example, "category": "" will set the application category to Developer Tools.

    Valid values are listed in Apple's documentation.

  • target String | TargetConfiguration - The target package type: list of default, dmg, mas, mas-dev, pkg, 7z, zip, tar.xz, tar.lz, tar.gz, tar.bz2, dir. Defaults to default (dmg and zip for Squirrel.Mac).
  • identity String - The name of certificate to use when signing. Consider using environment variables CSC_LINK or CSC_NAME instead of specifying this option. MAS installer identity is specified in the mas.
  • icon = build/icon.icns String - The path to application icon.
  • entitlements String - The path to entitlements file for signing the app. build/entitlements.mac.plist will be used if exists (it is a recommended way to set). MAS entitlements is specified in the mas.
  • entitlementsInherit String - The path to child entitlements which inherit the security settings for signing frameworks and bundles of a distribution. build/entitlements.mac.inherit.plist will be used if exists (it is a recommended way to set). Otherwise default.

    This option only applies when signing with entitlements provided.

  • bundleVersion String - The CFBundleVersion. Do not use it unless you need to.
  • bundleShortVersion String - The CFBundleShortVersionString. Do not use it unless you need to.
  • helperBundleId = ${appBundleIdentifier}.helper String - The bundle identifier to use in the application helper's plist.
  • type = distribution "distribution" | "development" - Whether to sign app for development or for distribution.
  • extendInfo any - The extra entries for Info.plist.
  • binaries Array<String> - Paths of any extra binaries that need to be signed.
  • requirements String - Path of requirements file used in signing. Not applicable for MAS.
  • electronUpdaterCompatibility String - The electron-updater compatibility semver range. e.g. >= 2.16, >=1.0.0. Defaults to >=1.0.0

    1.0.0 latest-mac.json 2.15.0 path 2.16.0 files

results matching ""

    No results matching ""