We are currently creating our mac installer as a pkg file using productbuild --component (according to the following message: Mac app storebuild ).
This works great, but I also want to add the license file to this installer.
With packagemaker, you can specify the --resources [path_to_resources_file] option. If you place the License.txt file in the specified resource folder, the installer magically includes a license step.
While the -resources option is also described in the productbuild man page, in practice this does not work with the --component option. It just ignores the option at all.
According to the productbuild man page, the -component option apparently only uses the product definition layer (I looked at the plist options, and none of them apply to the license file), component, additional installation path and exit path. Although the -sign option also works.
Does anyone know if (and if so, how) it is possible to include a license file for the installer when using the productbuild component?
Thanks in advance.
Yane
source
share