Search code examples
macosinstallationpackagepkgbuild

How does one set a background image in an OSX .pkg?


I am creating a .pkg installer for my OSX application and I am having trouble figuring out how to set the background image.

I am creating my installer in my build script like this:

pkgbuild --root $APP_FOLDER --identifier "com.company.product" $FINAL_PKG

This works great but I have not been able to find any information about setting the background image in the man pages. I have seen package installers that have custom background images, how does one set it?

EDIT:

Here is a screenshot of a package installer with a custom background:

enter image description here


Solution

  • Ah ha! There is a resources flag that goes along with productbuild. Here is a stackoverflow question addressing the resources: How do I build an OS X installer package with a custom background with productbuild?

    It mentions --resources /path/Resources

    and an en.lproj subdirectory, and an XML resources file. You can specify the background.jpg or modify an existing one.

    Hope this points you in the right direction(s).