<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1">
    <title>The-Deepener</title>
    <background mime-type="image/png" file="banner.png" scaling="proportional" alignment="bottomleft"/>
    <background-darkAqua mime-type="image/png" file="banner.png" scaling="proportional" alignment="bottomleft"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <license file="LICENSE.txt"/>
    <options customize="always" allow-external-scripts="no" rootVolumeOnly="true" hostArchitectures="x86_64,arm64"/>
    <domains enable_localSystem="true"/>
    <installation-check script="installCheck();"/>
    <script>
function installCheck() {
    if(!(system.compareVersions(system.version.ProductVersion, '10.6.0') &gt;= 0)) {
        my.result.title = 'Unable to install';
        my.result.message = 'The-Deepener requires Mac OS X 10.6 or later.';
        my.result.type = 'Fatal';
        return false;
    }
    <!-- if(system.files.fileExistsAtPath('/Applications/Master\ Tones/The-Deepener/1.0.0/')) {
        my.result.title = 'Previous Installation Detected';
        my.result.message = 'A previous installation of The-Deepener exists at /Applications/The-Deepener/. This installer will remove the previous installation prior to installing. Please back up any data before proceeding.';
        
        my.result.type = 'Warning';
        return false;
    } -->
        
    return true;
}
    </script>
    <choices-outline>
        <line choice="VST3"/>
        <line choice="AU"/>
        <line choice="AAX"/>
    </choices-outline>
    <choice id="VST3" title="VST3">
        <pkg-ref id="The-DeepenerVST.pkg"/>
    </choice>
    <choice id="AU" title="AU">
        <pkg-ref id="The-DeepenerAU.pkg"/>
    </choice>
    <choice id="AAX" title="AAX">
        <pkg-ref id="The-DeepenerAAX.pkg"/>
    </choice>
    <pkg-ref id="The-DeepenerVST.pkg" auth="Root" packageIdentifier="org.The-Deepener.1.0.0_2" version="1.0.0" installKBytes="13125">#The-Deepener.pkg</pkg-ref>
    <pkg-ref id="The-DeepenerAU.pkg" auth="Root" packageIdentifier="org.The-Deepener.1.0.0_1" version="1.0.0" installKBytes="13080">#The-Deepener_AU.pkg</pkg-ref>
    <pkg-ref id="The-DeepenerAAX.pkg" auth="Root" packageIdentifier="org.The-Deepener.1.0.0_3" version="1.0.0" installKBytes="13393">#The-Deepener_AAX.pkg</pkg-ref>
    <pkg-ref id="The-DeepenerVST.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.0" CFBundleVersion="1.0.0" id="com.MasterTones.TheDeepener" path="Library/Audio/Plug-Ins/VST3/Master Tones/The-Deepener.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="The-DeepenerAU.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.0" CFBundleVersion="1.0.0" id="com.MasterTones.TheDeepener" path="Library/Audio/Plug-Ins/Components/The-Deepener.component"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="The-DeepenerAAX.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0.0" CFBundleVersion="1.0.0" id="com.MasterTones.TheDeepener" path="Library/Application Support/Avid/Audio/Plug-Ins/The-Deepener.aaxplugin"/>
            <bundle CFBundleShortVersionString="5.4.1 GM (b3455, 933b85fce7)" CFBundleVersion="5.4.1.3455" id="com.paceap.eden.dsig.bundle" path="Library/Application Support/Avid/Audio/Plug-Ins/The-Deepener.aaxplugin/Contents/__Pace_Eden.bundle"/>
        </bundle-version>
    </pkg-ref>
</installer-script>