<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>Spectrum 1.0.1</title>
    <options customize="always" require-scripts="false" hostArchitectures="arm64"/>
    <installation-check script="pz_arch_check()"/>
    <script><![CDATA[
function pz_arch_check() {
    var arm = system.sysctl('hw.optional.arm64');
    if (arm == 1) { return true; }
    my.result.title   = 'Apple Silicon required';
    my.result.message = 'Spectrum is built for Apple Silicon (M-series) Macs. '
                      + 'This Mac has an Intel processor, so the plugin would install '
                      + 'but never appear in your host. Installation has been stopped.';
    my.result.type    = 'Fatal';
    return false;
}
]]></script>
    <choices-outline>
        <line choice="au"/>
        <line choice="vst3"/>
        <line choice="doc"/>
    </choices-outline>
    <choice id="au" title="Audio Unit (AU)" description="For Logic Pro, GarageBand and other AU hosts. Installs to /Library/Audio/Plug-Ins/Components.">
        <pkg-ref id="com.zeropink.spectrum.au"/>
    </choice>
    <choice id="vst3" title="VST3" description="For Cubase, Live, Studio One, Reaper and other VST3 hosts. Installs to /Library/Audio/Plug-Ins/VST3.">
        <pkg-ref id="com.zeropink.spectrum.vst3"/>
    </choice>
    <choice id="doc" title="User Manual (PDF)" description="Installs to /Library/Application Support/ZEROPINK/Documentation. The plugin's ? button opens it from there.">
        <pkg-ref id="com.zeropink.spectrum.doc"/>
    </choice>
    <pkg-ref id="com.zeropink.spectrum.au" version="1.0.1" installKBytes="4256" updateKBytes="0">#au.pkg</pkg-ref>
    <pkg-ref id="com.zeropink.spectrum.vst3" version="1.0.1" installKBytes="4271" updateKBytes="0">#vst3.pkg</pkg-ref>
    <pkg-ref id="com.zeropink.spectrum.doc" version="1.0.1" installKBytes="2475" updateKBytes="0">#doc.pkg</pkg-ref>
    <pkg-ref id="com.zeropink.spectrum.au">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.1" CFBundleVersion="1.0.1" id="com.zeropink.spectrum" path="Spectrum.component"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.zeropink.spectrum.vst3">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.1" CFBundleVersion="1.0.1" id="com.zeropink.spectrum" path="Spectrum.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.zeropink.spectrum.doc">
        <bundle-version/>
    </pkg-ref>
</installer-gui-script>