<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>CaptionX for Final Cut Pro</title>
    <!-- Per user only: installs into the home folder (~/Applications), so macOS asks for no admin password -->
    <domains enable_anywhere="false" enable_currentUserHome="true" enable_localSystem="false"/>
    <options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>
    <!-- Final Cut Pro 12.4, the version CaptionX supports, needs macOS 26.6 -->
    <installation-check script="check()"/>
    <script><![CDATA[
function check() {
    if (system.compareVersions(system.version.ProductVersion, '26.6') < 0) {
        my.result.type = 'Fatal';
        my.result.title = 'CaptionX needs macOS 26.6 or later';
        my.result.message = 'CaptionX for Final Cut Pro works with Final Cut Pro 12.4, which needs macOS 26.6 or later. Update macOS in System Settings > General > Software Update, then open this installer again.';
        return false;
    }
    return true;
}
]]></script>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <choices-outline>
        <line choice="captionx"/>
    </choices-outline>
    <choice id="captionx" title="CaptionX for Final Cut Pro">
        <pkg-ref id="com.captionx.finalcut.pkg"/>
    </choice>
    <pkg-ref id="com.captionx.finalcut.pkg" version="1.2.0" installKBytes="18557" updateKBytes="0">#captionx.pkg</pkg-ref>
    <pkg-ref id="com.captionx.finalcut.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.2.0" CFBundleVersion="1" id="com.captionx.finalcut.extension" path="CaptionX for Final Cut Pro.app/Contents/PlugIns/CaptionX.appex"/>
            <bundle CFBundleShortVersionString="1.2.0" CFBundleVersion="1" id="com.captionx.finalcut" path="CaptionX for Final Cut Pro.app"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>