So I have this distribution file for my package installer:
<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="2">
<title>Product</title>
<domains enable_localSystem="false" enable_currentUserHome="true" enable_anywhere="false" />
<allowed-os-versions>
<os-version min="10.15" />
</allowed-os-versions>
<background file="bg.png" alignment="topleft" scaling="none" />
<license file="license.html" />
<conclusion file="conclusion.html" />
<pkg-ref id="com.company.product" />
<options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64" />
<choices-outline>
<line choice="default">
<line choice="com.company.product" />
</line>
</choices-outline>
<choice id="default" />
<choice id="com.company.product" visible="false">
<pkg-ref id="com.company.product" />
</choice>
<pkg-ref id="com.company.product" version="0" onConclusion="none">Apollo.pkg</pkg-ref>
</installer-gui-script>
It should install the app in the home folder but still installs it inside /Applications unless user explicitly clicks "Install only for me" even though that's the only option available.
At this link https://stackoverflow.com/questions/11487596/making-macos-installer-packages-which-are-developer-id-ready they discourage using pkg installer for home folder installations as it's presumably buggy. What can I do?