Building the wrapper package
With the payload and script in place, build the package in two stages using Apple's built-in packaging tools.
Steps
Result
The build commands work as follows:
--identifieris the unique bundle-style identifier of the wrapper package itself. It must follow reverse-DNS naming, for examplecom.forcepoint.websenseendpoint.wrapper.--install-location /together with the payload's internal path (private/tmp/websenseendpoint_install) determines where the staged files land on the target macOS endpoint.pkgbuildproduces the component package.productbuildwraps it into a distribution package, which is the format Intune expects to receive.- WebsenseEndpointInstaller.pkg is the deliverable produced by this stage, but it is not yet ready to upload to Intune. See Signing and notarizing the wrapper package.