<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <background file="background.png" alignment="topleft" scaling="tofit"/>
    <license file="LICENCE.rtf"/>
    <options customize="never" require-scripts="true"/>
    <installation-check script="pm_install_check();"/>
    <script><![CDATA[
        function pm_install_check() {
            system.log("Running pre install check");
            system.log("OS version: " + system.version.ProductVersion);

            // Disallow 10.9 or earlier
            if (system.compareVersions(system.version.ProductVersion, '10.10') < 0) {
                my.result.title = 'Requires Mac OS X 10.10 or later';
                my.result.message = 'Mac OS X 10.10 or later is required to install this software.  Please upgrade this server to Mac OS X 10.10+.';
                my.result.type = 'Fatal';
                return false;
            }
            system.log("Successful pre install check");
            return true;
        }
        ]]></script>
    <choices-outline>
        <line choice="default">
            <line choice="com.papercut.printdeploy.client"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.papercut.printdeploy.client" visible="false" customLocation="/Applications">
        <pkg-ref id="com.papercut.printdeploy.client"/>
    </choice>
    <pkg-ref id="com.papercut.printdeploy.client" auth="root" onConclusion="none" version="3104" installKBytes="86484">#print-deploy-client.pkg</pkg-ref>
    <pkg-ref id="com.papercut.printdeploy.client">
        <bundle-version/>
    </pkg-ref>
</installer-gui-script>