productbuild.rst 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. CPack productbuild Generator
  2. ----------------------------
  3. productbuild CPack generator (macOS).
  4. Variables specific to CPack productbuild generator
  5. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  6. The following variable is specific to installers built on Mac
  7. macOS using ProductBuild:
  8. .. variable:: CPACK_COMMAND_PRODUCTBUILD
  9. Path to the ``productbuild(1)`` command used to generate a product archive for
  10. the macOS 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 macOS component package
  19. on macOS. 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.
  41. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND
  42. Adds a background to Distribtion XML if specified. The value contains the
  43. path to image in ``Resources`` directory.
  44. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT
  45. Adds an ``alignment`` attribute to the background in Distribution XML.
  46. Refer to Apple documentation for valid values.
  47. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_SCALING
  48. Adds a ``scaling`` attribute to the background in Distribution XML.
  49. Refer to Apple documentation for valid values.
  50. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_MIME_TYPE
  51. Adds a ``mime-type`` attribute to the background in Distribution XML.
  52. The option contains MIME type of an image.
  53. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_UTI
  54. Adds an ``uti`` attribute to the background in Distribution XML.
  55. The option contains UTI type of an image.
  56. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA
  57. Adds a background for the Dark Aqua theme to Distribution XML if
  58. specified. The value contains the path to image in ``Resources``
  59. directory.
  60. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_ALIGNMENT
  61. Does the same as :variable:`CPACK_PRODUCTBUILD_BACKGROUND_ALIGNMENT` option,
  62. but for the dark theme.
  63. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_SCALING
  64. Does the same as :variable:`CPACK_PRODUCTBUILD_BACKGROUND_SCALING` option,
  65. but for the dark theme.
  66. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_MIME_TYPE
  67. Does the same as :variable:`CPACK_PRODUCTBUILD_BACKGROUND_MIME_TYPE` option,
  68. but for the dark theme.
  69. .. variable:: CPACK_PRODUCTBUILD_BACKGROUND_DARKAQUA_UTI
  70. Does the same as :variable:`CPACK_PRODUCTBUILD_BACKGROUND_UTI` option,
  71. but for the dark theme.