<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  Distribution definition for the Parasite macOS installer.
  Consumed by installer/macos/build-pkg.sh, which substitutes the version
  placeholder before handing the file to productbuild. Do not use directly.

  Convention note: there is deliberately NO install-path choice, in the UI or
  in the copy. macOS hosts scan fixed directories, so commercial plugin
  installers offer format selection (VST3 / AU), not location selection —
  and no customer-facing string here may mention a filesystem path, or it
  reads as a choice the installer never actually offers.

  Destination UI: rootVolumeOnly, NOT <domains>. This is counter-intuitive,
  since <domains> is the modern element and rootVolumeOnly is deprecated, so
  it will look like a mistake to anyone reading the docs. It is not, and it
  was verified by looking at the running installer:

    <domains enable_localSystem="true"/>   ->  Installer shows a "Destination
                                               Select" PANE offering exactly
                                               one choice, "Install for all
                                               users of this computer". A
                                               question with a single answer.
    <options rootVolumeOnly="true">        ->  no pane at all.

  Declaring both is what resurfaces "Change Install Location…", so use one.
  We want the destination decided, not presented, hence rootVolumeOnly alone.
-->
<installer-gui-script minSpecVersion="2">
    <title>Parasite 1.0.1</title>
    <welcome file="welcome.html" mime-type="text/html"/>
    <license file="EULA.txt" mime-type="text/plain"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <!-- Installer.app draws the background behind every pane, with the pane
         text over the upper-right region. Both variants are composed for
         that: artwork seated bottom-left, upper-right kept quiet. 620x418,
         the size the installer expects; regenerate with make-backgrounds.py
         (same directory as this file). -->
    <background file="background.png" alignment="bottomleft" scaling="none"/>
    <background-darkAqua file="background-dark.png" alignment="bottomleft" scaling="none"/>
    <!-- Always show the choice pane so either format can be deselected. -->
    <options customize="always" require-scripts="false" rootVolumeOnly="true" hostArchitectures="arm64,x86_64"/>
    <volume-check>
        <allowed-os-versions>
            <os-version min="11.0"/>
        </allowed-os-versions>
    </volume-check>
    <choices-outline>
        <line choice="vst3"/>
        <line choice="au"/>
    </choices-outline>
    <choice id="vst3" title="VST3 plug-in" description="For Ableton Live, Bitwig, Cubase, FL Studio, and every other VST3 host." start_selected="true" start_enabled="true">
        <pkg-ref id="com.voidscan.parasite.vst3.pkg"/>
    </choice>
    <choice id="au" title="Audio Unit (AU) plug-in" description="For Logic Pro, GarageBand, and other Audio Unit hosts." start_selected="true" start_enabled="true">
        <pkg-ref id="com.voidscan.parasite.au.pkg"/>
    </choice>
    <pkg-ref id="com.voidscan.parasite.vst3.pkg" version="1.0.1" installKBytes="29330" updateKBytes="0">#Parasite-VST3.pkg</pkg-ref>
    <pkg-ref id="com.voidscan.parasite.au.pkg" version="1.0.1" installKBytes="28752" updateKBytes="0">#Parasite-AU.pkg</pkg-ref>
    <pkg-ref id="com.voidscan.parasite.vst3.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.1" CFBundleVersion="1.0.1" id="com.voidscan.parasite" path="Parasite.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.voidscan.parasite.au.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.1" CFBundleVersion="1.0.1" id="com.voidscan.parasite" path="Parasite.component"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>