<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>ProMatch 0.2.0</title>
    <welcome file="welcome.html" mime-type="text/html"/>
    <license file="LICENSE.txt" mime-type="text/plain"/>
    <options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <volume-check>
        <allowed-os-versions>
            <os-version min="11.0"/>
        </allowed-os-versions>
    </volume-check>
    <installation-check script="pmAdobeClosed()"/>
    <script><![CDATA[
    // Like the Windows installer: Premiere and Media Encoder hold the effect
    // open and only load new panels and effects at start-up. Any version
    // (com.adobe.PremierePro.26, com.adobe.ame.application.26, ...).
    function pmAdobeClosed() {
        var apps = [];
        try { apps = system.applications.all(); } catch (e) { return true; }
        for (var i = 0; i < apps.length; i++) {
            var id = String(apps[i].bundleIdentifier || '');
            if (id.indexOf('com.adobe.PremierePro') == 0 || id.indexOf('com.adobe.ame') == 0) {
                my.result.title = 'Close Premiere Pro and Media Encoder';
                my.result.message = 'Quit Premiere Pro and Adobe Media Encoder, then open the ProMatch installer again.';
                my.result.type = 'Fatal';
                return false;
            }
        }
        return true;
    }
    ]]></script>
    <choices-outline>
        <line choice="default">
            <line choice="com.promatch.pkg"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.promatch.pkg" visible="false">
        <pkg-ref id="com.promatch.pkg"/>
    </choice>
    <pkg-ref id="com.promatch.pkg" version="0.2.0" onConclusion="none" installKBytes="12722" updateKBytes="0">#ProMatch-component.pkg</pkg-ref>
    <pkg-ref id="com.promatch.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.2.0" CFBundleVersion="0.2.0" id="com.promatch.effect" path="Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/ProMatch.plugin"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>