<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script authoringTool="Packages" authoringToolVersion="1.2.9" authoringToolBuild="603" minSpecVersion="1">
    <domains enable_localSystem="true"/>
    <options rootVolumeOnly="true" customize="never" hostArchitectures="arm64,x86_64"/>
    <!--+==========================+
        |       Presentation       |
        +==========================+-->
    <title>DISTRIBUTION_TITLE</title>
    <allowed-os-versions>
        <os-version min="13.3"/>
    </allowed-os-versions>
    <background file="background" scaling="proportional" alignment="bottomleft"/>
    <background-darkAqua file="background_dark" scaling="proportional" alignment="bottomleft"/>
    <welcome file="welcome.txt"/>
    <!--+==========================+
        |         Installer        |
        +==========================+-->
    <choices-outline>
        <line choice="installer_choice_1"/>
    </choices-outline>
    <choice id="installer_choice_1" start_visible="false" title="cato client" description="">
        <pkg-ref id="com.catonetworks.pkg.CatoClient"/>
    </choice>
    <!--+==========================+
        |    Package References    |
        +==========================+-->
    <pkg-ref id="com.catonetworks.pkg.CatoClient" version="1.0" installKBytes="202326">#Cato_Client.pkg</pkg-ref>
    <pkg-ref id="com.catonetworks.pkg.CatoClient" updateKBytes="0">
        <must-close>
            <app id="com.catonetworks.mac.CatoClient"/>
        </must-close>
        <bundle-version>
            <bundle CFBundleShortVersionString="5.13.1" CFBundleVersion="11418" id="com.catonetworks.mac.CatoClient" path="CatoClient.app"/>
        </bundle-version>
    </pkg-ref>
    <installation-check script="preinstall_check();"/>
    <script><![CDATA[
            function preinstall_check() {
                if (system.compareVersions(system.version.ProductVersion, '13.3') < 0) {
                    my.result.title = "Unsupported macOS version";
                    my.result.message = "Cato Client requires macOS 13.3 (Ventura) or newer";
                    my.result.type = 'Fatal';
                    return false;
                }
                return true;
            }
        ]]></script>
</installer-gui-script>