<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  productbuild distribution template for the macOS .pkg installer.
  CI (build-vst.yml / build-sampler.yml) sed-substitutes the @TOKENS@:
    DreamSampler     installer-facing product name (e.g. "DreamMachine")
    live.daydream.dreamsampler.vst3   pkgbuild identifier of the VST3 component pkg
    live.daydream.dreamsampler.component     pkgbuild identifier of the Audio Unit component pkg
    <line choice="app"/> / <choice id="app" title="Standalone App" visible="true" start_selected="true"><pkg-ref id="live.daydream.dreamsampler.app"/></choice> / <pkg-ref id="live.daydream.dreamsampler.app" version="0.34.0">app.pkg</pkg-ref>
                the Standalone .app component, same optional pattern as AAX
                below. The sampler installer ships it; the DreamSampler FX
                installer does NOT (a second copy of the same app under a
                near-identical name is pure confusion — the FX registration only
                means anything to a host), so those three tokens go empty there.
    0.34.0   project version (matches each component pkg version)
    <line choice="aax"/> / <choice id="aax" title="AAX (Pro Tools)" visible="true" start_selected="true"><pkg-ref id="live.daydream.dreamsampler.aax"/></choice> / <pkg-ref id="live.daydream.dreamsampler.aax" version="0.34.0">aax.pkg</pkg-ref>
                the AAX (Pro Tools) component. Substituted with the real choice
                line / choice definition / pkg-ref when the run received a
                PACE-signed .aaxplugin (workflow input signed_aax_url); replaced
                with empty strings otherwise, yielding the same AAX-less
                installer as before. AAX installs to
                /Library/Application Support/Avid/Audio/Plug-Ins.
  Components are individually selectable (customize="always"): the installer
  shows the format-selection screen up front (all pre-checked) so users can
  deselect any format — the industry-standard plugin-installer UX, where the
  "which formats to install" step is part of the flow rather than hidden behind a
  Customize button. Install locations: VST3 -> /Library/Audio/Plug-Ins/VST3,
  AU (.component) -> /Library/Audio/Plug-Ins/Components (Logic Pro / GarageBand),
  Standalone .app -> /Applications.
  The conclusion pane (next steps: rescan plug-ins, exact DAW name, sign in) is
  conclusion.html, sed-generated by CI from conclusion.html.in and passed as
  productbuild's resources directory. A pkg can't auto-launch anything
  post-install, so this pane is the only "what now?" surface the installer has.
-->
<installer-gui-script minSpecVersion="2">
    <title>DreamSampler</title>
    <organization>live.daydream</organization>
    <options customize="always" require-scripts="false" hostArchitectures="arm64,x86_64"/>
    <domains enable_localSystem="true"/>
    <volume-check>
        <allowed-os-versions>
            <os-version min="11.0"/>
        </allowed-os-versions>
    </volume-check>
    <conclusion file="conclusion.html"/>
    <choices-outline>
        <line choice="vst3"/>
        <line choice="au"/>
        <line choice="app"/>
        <line choice="aax"/>
    </choices-outline>
    <choice id="vst3" title="VST3 Plug-In" visible="true" start_selected="true">
        <pkg-ref id="live.daydream.dreamsampler.vst3"/>
    </choice>
    <choice id="au" title="Audio Unit (AU)" visible="true" start_selected="true">
        <pkg-ref id="live.daydream.dreamsampler.component"/>
    </choice>
    <choice id="app" title="Standalone App" visible="true" start_selected="true">
        <pkg-ref id="live.daydream.dreamsampler.app"/>
    </choice>
    <choice id="aax" title="AAX (Pro Tools)" visible="true" start_selected="true">
        <pkg-ref id="live.daydream.dreamsampler.aax"/>
    </choice>
    <pkg-ref id="live.daydream.dreamsampler.vst3" version="0.34.0" installKBytes="19304">#vst3.pkg</pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.component" version="0.34.0" installKBytes="19175">#au.pkg</pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.app" version="0.34.0" installKBytes="18963">#app.pkg</pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.aax" version="0.34.0" installKBytes="18736">#aax.pkg</pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.vst3">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.34.0" CFBundleVersion="0.34.0" id="com.Daydream.RTMG_Instrument" path="Library/Audio/Plug-Ins/VST3/DreamSampler - Alpha.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.component">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.34.0" CFBundleVersion="0.34.0" id="com.Daydream.RTMG_Instrument" path="Library/Audio/Plug-Ins/Components/DreamSampler - Alpha.component"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.app">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.34.0" CFBundleVersion="0.34.0" id="com.Daydream.RTMG_Instrument" path="Applications/DreamSampler - Alpha.app"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="live.daydream.dreamsampler.aax">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.30.0" CFBundleVersion="0.30.0" id="com.Daydream.RTMG_Instrument" path="Library/Application Support/Avid/Audio/Plug-Ins/DreamSampler - Alpha.aaxplugin"/>
            <bundle CFBundleShortVersionString="6.0.0 GM (b6838, ca532da7)" CFBundleVersion="6.0.0.6838" id="com.paceap.eden.dsig.bundle" path="Library/Application Support/Avid/Audio/Plug-Ins/DreamSampler - Alpha.aaxplugin/Contents/__Pace_Eden.bundle"/>
        </bundle-version>
    </pkg-ref>
    <product version="0.34.0"/>
</installer-gui-script>