Creating Installer For Application Support Only - productbuild issue
I successfully create a pkg using:
pkgbuild --root ./packaging/plugins/AppData --identifier com.company.plugin--install-location '/Library/Application Support/company/AppStorage' ./packaging/com.company.plugin.pkg
Then I create a distribution:
productbuild --distribution .packaging/plugins/pkg/distribution.xml "./packaging/Plugin 1.0.0.pkg"
But when running through "Plugin 1.0.0.pkg", when I click install I get:
"the installer could not install the software because there was no software found to be installed"
Does productbuild require an .app file or what am I doing wrong?
Here is the distribution I wrote:
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="2">
<title>Plugin</title>
<options customize="never" require-scripts="false" hostArchitectures="x86_64"/>
<domains enable_anywhere="true" enable_currentUserHome="true" enable_localSystem="true" />
<volume-check>
<allowed-os-versions>
<os-version min="10.11.0"/>
</allowed-os-versions>
<required-bundles>
<bundle id="com.company.app" path="Applications/app.app" CFBundleShortVersionString="1.0.0"/>
</required-bundles>
</volume-check>
<choices-outline>
<line choice="com.company.plugin"/>
</choices-outline>
<choice id="com.company.plugin" title="Plugin" visible="false">
<pkg-ref id="com.company.plugin"/>
</choice>
<pkg-ref id="com.company.plugin">com.company.plugin.pkg</pkg-ref>
<pkg-ref id="com.company.plugin">
<must-close>
<app id="com.company.app"/>
</must-close>
</pkg-ref>
</installer-gui-script>