Create .pkg with license

Hi,

I have read the post
https://developer.apple.com/forums/thread/128166

but how can I add the license agreements into the pkg?

in the same way that SF Symbols installer

Thanks

Replies

Installer packages aren’t really my thing — there’s another engineer here in DTS who handles those questions — but my understanding is that you do this by passing a ‘distribution’ file to productbuild. That file is an XML file as defined by Distribution Definition XML Schema Reference.

To see how this works in practise, you can unpack an installer using the techniques described in Unpacking Apple Archives. I did this for SF Symbols and this is what I see:

Code Block
% cat Distribution
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
<options customize="never" hostArchitectures="i386,x86_64,arm64" rootVolumeOnly="true"/>
<title>SU_TITLE</title>
<script/>
<installation-check script="InstallationCheck()"/>
<domains enable_localSystem="true" enable_anywhere="true" enable_currentUserHome="true"/>
<license file="License.rtf"/>
<welcome file="welcome.html"/>
</installer-gui-script>


If you search the ’net for keywords like installer-gui-script you’ll find folks giving examples of this. And if you get really stuck, open a DTS tech support incident and talk to our installer expert.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
That worked, but now when I try to install the package it gives this error:

Package is incompatible with this version of macOS

Any advice or hints?

Any advice or hints?

No. You’ve run off the end of my very limited knowledge of the installer. You should open a DTS tech support incident and talk to Rich.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"