<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
    productbuild distribution for the Heirloom installer.

    Two choices, both ticked by default, so somebody who wants only the Audio
    Unit or only the VST3 can say so. Neither is required: a customer who
    unticks both gets an installer that does nothing, which is their business.

    hostArchitectures covers both, matching the universal binary. Leaving it
    out makes the installer refuse to run on one architecture or the other,
    with a message that does not explain itself.
-->
<installer-gui-script minSpecVersion="2">
    <title>Heirloom</title>
    <organization>co.keepsakesound</organization>
    <options customize="always" require-scripts="false" hostArchitectures="arm64,x86_64"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <options rootVolumeOnly="true"/>
    <domains enable_localSystem="true" enable_anywhere="false" enable_currentUserHome="false"/>
    <choices-outline>
        <line choice="vst3"/>
        <line choice="au"/>
    </choices-outline>
    <choice id="vst3" title="VST3" visible="true" description="For Ableton Live, Bitwig, Reaper, Studio One, Cubase and most other hosts. Installs to /Library/Audio/Plug-Ins/VST3.">
        <pkg-ref id="co.keepsakesound.heirloom.vst3"/>
    </choice>
    <choice id="au" title="Audio Unit" visible="true" description="For Logic Pro and GarageBand, which do not load VST3 at all. Installs to /Library/Audio/Plug-Ins/Components.">
        <pkg-ref id="co.keepsakesound.heirloom.au"/>
    </choice>
    <pkg-ref id="co.keepsakesound.heirloom.vst3" version="0.2.0" installKBytes="45776">#Heirloom-VST3.pkg</pkg-ref>
    <pkg-ref id="co.keepsakesound.heirloom.au" version="0.2.0" installKBytes="45721">#Heirloom-AU.pkg</pkg-ref>
    <pkg-ref id="co.keepsakesound.heirloom.vst3">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.2.0" CFBundleVersion="0.2.0" id="co.keepsakesound.heirloom" path="Library/Audio/Plug-Ins/VST3/Heirloom.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="co.keepsakesound.heirloom.au">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.2.0" CFBundleVersion="0.2.0" id="co.keepsakesound.heirloom" path="Library/Audio/Plug-Ins/Components/Heirloom.component"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>