<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>SoftPerfect RAM File System</title>
    <!-- file="*.rtf" is rewritten to "*.rtfd" by build-pkg.sh post-process.
         productbuild rejects .rtfd inside its resources dir, so we stage
         with .rtf and convert inside the expanded pkg. -->
    <welcome file="Welcome.rtfd" mime-type="text/rtf"/>
    <license file="License.rtfd" mime-type="text/rtf"/>
    <options customize="never" rootVolumeOnly="true" require-scripts="true" hostArchitectures="arm64,x86_64"/>
    <installation-check script="installationCheck()"/>
    <script><![CDATA[
        function installationCheck() {
            var v = system.version.ProductVersion;
            if (system.compareVersions(v, '12.0') >= 0) {
                return true;
            }
            my.result.type = 'Fatal';
            my.result.title = 'macOS 12 (Monterey) or later is required';
            my.result.message = 'SoftPerfect RAM File System requires macOS 12 ' +
                                '(Monterey) or later because the kernel extension ' +
                                'uses kpi APIs that are not available on earlier ' +
                                'releases. You are running macOS ' + v + '.';
            return false;
        }
    ]]></script>
    <choices-outline>
        <line choice="default"/>
    </choices-outline>
    <choice id="default" title="SoftPerfect RAM File System">
        <pkg-ref id="com.softperfect.ramfs.pkg"/>
    </choice>
    <pkg-ref id="com.softperfect.ramfs.pkg" auth="root" version="26.9" installKBytes="20195" updateKBytes="0">#component.pkg</pkg-ref>
    <product id="com.softperfect.ramfs.pkg" version="26.9"/>
    <pkg-ref id="com.softperfect.ramfs.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="26.9" CFBundleVersion="26.9" id="com.softperfect.ramfsgui" path="Applications/SoftPerfect RAM FS/SoftPerfect RAM FS.app"/>
            <bundle CFBundleShortVersionString="26.9" CFBundleVersion="26.9" id="com.softperfect.ramfs.fs" path="Library/Filesystems/ramfs.fs"/>
            <bundle CFBundleShortVersionString="26.9" CFBundleVersion="26.9" id="com.softperfect.ramfs" path="Library/Extensions/ramfs.kext"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>