Reputation: 4268
I'm using productbuild command line tool on mac to create pkg installer. I need to provide an EULA in my package, so I've modified distribution.xml to include license:
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
<license file="EULA.pdf" />
...
</installer-gui-script>
But it looks like pdf is not recognizeable by productbuild, license step shows pdf file content in plain text. I've tried to specify mime-type attribute, but the result is the same. After some googling, I've found that most people using either rtf or html license files.
Are supported file formats/UTI/MIME types documented somewhere? The only documentation I was able to find is https://developer.apple.com/library/content/documentation/DeveloperTools/Reference/DistributionDefinitionRef/Chapters/Distribution_XML_Ref.html , but it doesn't say anything about supported formats.
More important question - can I somehow create an installer package with pdf license?
Upvotes: 1
Views: 719