Thanks for being a part of WWDC25!

How did we do? We’d love to know your thoughts on this year’s conference. Take the survey here

Bundling OSX installer plugin with productbuild/pkgbuild

I'm trying to create a .pkg installer with productbuild/pkgbuild. But I'd also like to add my custom installer plugin to this. I'm using the following script. I'd like to add my bundle into this script. Since there are no official docs from apple how to do this nor there are a lot of updated resources, here are some things I have tried.

adding the following line to Distrubtion.xml

<bundle id="pluginid" path="path/to/myplugin.bundle"/>

adding component tag to pkgbuild also doesn't do anything

--component "path/to/myplugin.bundle"

The bundle itself is build with XCode - it is a simple UI for user to type some input in

Apple provides documentation for Distribution.xml file, which supports different UI elements but doesn't support text input - docs

I have been also looking at this tutorial , it is very outdated but i could still fit it to my needs except the part where the .bundle file needs to be inserted into .pkg.

Note - there is no option to view the contents of .pkg file build with pkbuild/productbuild

How can i do this process correctly? I would like to link my installer pane plugin to a generic .pkg(with licenses and so on). I'd appreciate any kind of help!

Bundling OSX installer plugin with productbuild/pkgbuild
 
 
Q