How to customize macOS Installer's name for my package made with productbuild?

1.2k views Asked by At

I have a build target set up in my Xcode project to create a package from a number of other targets. I added a build phase script that simply runs productbuild, which can automatically detect just about everything needed for my install:

productbuild \
--root "$INSTALL_ROOT" \
--identifier "$PRODUCT_BUNDLE_IDENTIFIER" \
"${BUILT_PRODUCTS_DIR}/${PRODUCT_NAME}.pkg"

This package works great functionally, but when I open it, the Installer.app is missing a name for it:

Screenshot of Install.app startup screen

The window title should say "Install {Useful App}" and the little label below that should say "Welcome to the {Useful App} Installer".

How do I give my installer package a name/title for the UI? Can I do it while still using the --root option, or do I need to synthesize and then forever manually maintain a distribution file?

1

There are 1 answers

0
fortytwo On

Use title as described in the Distribution Definition XML Schema Reference.