<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  productbuild distribution definition for CanaryVoiceTune.
  1.0.3, @COMPONENT_PKG_SYSTEM@ and component-user.pkg are substituted
  by scripts/make_pkg.sh.

  Two mutually-exclusive install choices are offered on the Installation Type
  page (like Waves / NI installers):
    * System  -> /Library/Audio/Plug-Ins/VST3        (all users, needs admin)
    * User    -> ~/Library/Audio/Plug-Ins/VST3       (current user, no admin)
-->
<installer-gui-script minSpecVersion="2">
    <title>Canary Voice Tune</title>
    <organization>com.sharkoaudio</organization>
    <!-- Installer window pages -->
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <!-- Apple Silicon only; show the customization (choice) page. -->
    <options customize="always" require-scripts="false" hostArchitectures="arm64"/>
    <choices-outline>
        <line choice="choice.system"/>
        <line choice="choice.user"/>
    </choices-outline>
    <!-- The shared payload package always installs the bundle to the system
         VST3 folder. The "user" choice additionally runs a relocation package
         that moves it into the current user's home Library. The payload is
         stored once, so the two choices don't double the installer size. -->
    <!-- All users (default, selected). Requires admin password. -->
    <choice id="choice.system" title="Install for all users" description="Installs to /Library/Audio/Plug-Ins/VST3 (requires an administrator password)." start_selected="true" selected="!choices['choice.user'].selected" visible="true">
        <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.payload"/>
    </choice>
    <!-- Current user only. No admin password prompt for the plug-in itself. -->
    <choice id="choice.user" title="Install for me only" description="Installs to your home Library (no administrator password needed)." start_selected="false" selected="!choices['choice.system'].selected" visible="true">
        <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.payload"/>
        <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.user"/>
    </choice>
    <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.payload" version="1.0.3" onConclusion="none" installKBytes="49839" updateKBytes="0">#component-payload.pkg</pkg-ref>
    <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.user" version="1.0.3" onConclusion="none" installKBytes="0" updateKBytes="0">#component-user.pkg</pkg-ref>
    <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.payload">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.3" CFBundleVersion="1.0.3" id="com.SharkoAudio.CanaryVoiceTune" path="CanaryVoiceTune.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.sharkoaudio.CanaryVoiceTune.vst3.user">
        <bundle-version/>
    </pkg-ref>
</installer-gui-script>