Electron Docs
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": "public.app-category.developer-tools"
will set the application category to Developer Tools.Valid values are listed in Apple's documentation.
target
String | TargetConfiguration - The target package type: list ofdefault
,dmg
,mas
,mas-dev
,pkg
,7z
,zip
,tar.xz
,tar.lz
,tar.gz
,tar.bz2
,dir
. Defaults todefault
(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 - TheCFBundleVersion
. Do not use it unless you need to.bundleShortVersion
String - TheCFBundleShortVersionString
. 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 forInfo.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.
相关npm包集合
- electron-packager
- electron-builder
- electron-updater
- electron-download
- electron-apps
- electron-to-chromium
- awesome-electron
- electron-debug
- electron-rebuild