The top-level pkg key contains set of options instructing electron-builder on how it should build PKG (macOS installer component package).

  • scripts = build/pkg-scripts String - The scripts directory, relative to build (build resources directory). The scripts can be in any language so long as the files are marked executable and have the appropriate shebang indicating the path to the interpreter. Scripts are required to be executable (chmod +x file). See: Scripting in installer packages.
  • installLocation = /Applications String - The install location. Do not use it to create per-user package. Mostly never you will need to change this option. /Applications would install it as expected into /Applications if the local system domain is chosen, or into $HOME/Applications if the home installation is chosen.
  • allowAnywhere = true Boolean - Whether can be installed at the root of any volume, including non-system volumes. Otherwise, it cannot be installed at the root of a volume.

    Corresponds to enable_anywhere.

  • allowCurrentUserHome = true Boolean - Whether can be installed into the current user’s home directory. A home directory installation is done as the current user (not as root), and it cannot write outside of the home directory. If the product cannot be installed in the user’s home directory and be not completely functional from user’s home directory.

    Corresponds to enable_currentUserHome.

  • allowRootDirectory = true Boolean - Whether can be installed into the root directory. Should usually be true unless the product can be installed only to the user’s home directory.

    Corresponds to enable_localSystem.

  • identity String - The name of certificate to use when signing. Consider using environment variables CSC_LINK or CSC_NAME instead of specifying this option.
  • license String - The path to EULA license file. Defaults to license.txt or eula.txt (or uppercase variants). In addition to txt,rtfandhtmlsupported (don't forget to usetarget="_blank"` for links).

Inherited from TargetSpecificOptions:

results matching ""

    No results matching ""