productbuild
doesn't handle .rtfd files correctly but I have found that OS X 10.9 Mavericks doesn't handle HTML base 64 encoded images either.
My workaround is to use productbuild
with dummmy .rtf files and then use pkgutil
to repackage the installer.
Your distribution.xml
file contains:
<welcome file='Welcome-ReplaceMe.rtf' />
and Welcome-ReplaceMe.rtf exists in a .lproj folder inside Resources. Once the installer is built, but before you sign it with productsign
expand the package:
pkgutil --expand Installer.mpkg Installer.expanded
change the Distribution
file inside Installer.expanded to use:
<welcome file='Welcome.rtfd' />
and delete the dummy Welcome-ReplaceMe.rtf and add Welcome.rftd. Finally repackage the installer:
pkgutil --flatten Installer.expanded Installer.mpkg