title: mac: How to add a License.txt to a pkg built with productbuild using --component option?
body: <p>We currently build our mac installer as a pkg file using productbuild --component (as per the following post: <a href="https://stackoverflow.com/questions/8038788/mac-app-store-productbuild">Mac app store productbuild</a>).</p>
  
  <p>This works wonderfully, but I also wish to add a license file to this installer.  </p>
  
  <p>With packagemaker, you can specify the option --resources [path_to_resources_file].  If you put a License.txt in the specified resources folder, the installer magically includes a license step.  </p>
  
  <p>Whilst productbuild's man page describes a --resources option too, in practice this does not appear to work with the --component option.  It just seems to ignore the option altogether.</p>
  
  <p>According to the productbuild man page, the --component option apparently only takes a product definition plist (I had a look through the plist options and none seemed to apply to a license file), a component, an optional install path and an output path.  Although the --sign option also works.</p>
  
  <p>Does anyone know whether it is possible (and if so, how) to include a license file for the installer when using productbuild --component?</p>
  
  <p>Thanks in advance.</p>
  
  <p>Iain</p>