productbuild.rst 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. CPack productbuild Generator
  2. ----------------------------
  3. productbuild CPack generator (Mac OS X).
  4. Variables specific to CPack productbuild generator
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. The following variable is specific to installers built on Mac
  7. OS X using ProductBuild:
  8. .. variable:: CPACK_COMMAND_PRODUCTBUILD
  9. Path to the productbuild(1) command used to generate a product archive for
  10. the OS X Installer or Mac App Store. This variable can be used to override
  11. the automatically detected command (or specify its location if the
  12. auto-detection fails to find it.)
  13. .. variable:: CPACK_PRODUCTBUILD_IDENTITY_NAME
  14. Adds a digital signature to the resulting package.
  15. .. variable:: CPACK_PRODUCTBUILD_KEYCHAIN_PATH
  16. Specify a specific keychain to search for the signing identity.
  17. .. variable:: CPACK_COMMAND_PKGBUILD
  18. Path to the pkgbuild(1) command used to generate an OS X component package
  19. on OS X. This variable can be used to override the automatically detected
  20. command (or specify its location if the auto-detection fails to find it.)
  21. .. variable:: CPACK_PKGBUILD_IDENTITY_NAME
  22. Adds a digital signature to the resulting package.
  23. .. variable:: CPACK_PKGBUILD_KEYCHAIN_PATH
  24. Specify a specific keychain to search for the signing identity.
  25. .. variable:: CPACK_PREFLIGHT_<COMP>_SCRIPT
  26. Full path to a file that will be used as the ``preinstall`` script for the
  27. named ``<COMP>`` component's package, where ``<COMP>`` is the uppercased
  28. component name. No ``preinstall`` script is added if this variable is not
  29. defined for a given component.
  30. .. variable:: CPACK_POSTFLIGHT_<COMP>_SCRIPT
  31. Full path to a file that will be used as the ``postinstall`` script for the
  32. named ``<COMP>`` component's package, where ``<COMP>`` is the uppercased
  33. component name. No ``postinstall`` script is added if this variable is not
  34. defined for a given component.
  35. .. variable:: CPACK_PRODUCTBUILD_RESOURCES_DIR
  36. If specified the productbuild generator copies files from this directory
  37. (including subdirectories) to the ``Resources`` directory. This is done
  38. before the :variable:`CPACK_RESOURCE_FILE_WELCOME`,
  39. :variable:`CPACK_RESOURCE_FILE_README`, and
  40. :variable:`CPACK_RESOURCE_FILE_LICENSE` files are copied.