<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>iodyne</title>
    <installation-check script="InstallationCheck()"/>
    <pkg-ref id="com.iodyne.pkg.preinstall" version="1.0.0" onConclusion="None" installKBytes="0" updateKBytes="0">#preinstall.pkg</pkg-ref>
    <pkg-ref id="com.iodyne.app.pkg" version="1.0.0" onConclusion="None">#iodyneApp.pkg</pkg-ref>
    <pkg-ref id="com.iodyne.app.pkg" installKBytes="72609" updateKBytes="0">
        <must-close>
            <app id="com.iodyne.app.iodyneApp"/>
        </must-close>
        <bundle-version>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.iodyne.libvmem" path="Applications/iodyne.app/Contents/Frameworks/libbson-macOS.framework/Versions/A/Frameworks/libvmem-macOS.framework"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.iodyne.libtree" path="Applications/iodyne.app/Contents/Library/LoginItems/iodyne Status.app/Contents/Frameworks/libtree.framework"/>
            <bundle id="iodynecloud.IodyneCloud.resources" path="Applications/iodyne.app/Contents/Resources/IodyneCloud_IodyneCloud.bundle"/>
            <bundle CFBundleShortVersionString="8.57.3" CFBundleVersion="8.57.3" id="io.sentry.Sentry" path="Applications/iodyne.app/Contents/Frameworks/Sentry.framework"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.iodyne.libbson" path="Applications/iodyne.app/Contents/Frameworks/libbson-macOS.framework"/>
            <bundle id="iodynecommon.IodyneCommon.resources" path="Applications/iodyne.app/Contents/XPCServices/PhoneHomeService.xpc/Contents/Resources/IodyneCommon_IodyneCommon.bundle"/>
            <bundle CFBundleShortVersionString="2.1.0" CFBundleVersion="5323.0721.5277" id="com.iodyne.PhoneHomeService" path="Applications/iodyne.app/Contents/XPCServices/PhoneHomeService.xpc"/>
            <bundle CFBundleShortVersionString="1.0" id="com.apple.ScriptEditor.id.kext-check" path="Applications/iodyne.app/Contents/Resources/kext_check.scptd"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.iodyne.libqr" path="Applications/iodyne.app/Contents/Library/LoginItems/iodyne Status.app/Contents/Frameworks/libqr.framework"/>
            <bundle CFBundleShortVersionString="2.1.0" CFBundleVersion="5323.0721.5277" id="com.iodyne.app.iodyneApp" path="Applications/iodyne.app"/>
            <bundle CFBundleShortVersionString="2.1.0" CFBundleVersion="5323.0721.5277" id="com.iodyne.app.login" path="Applications/iodyne.app/Contents/Library/LoginItems/iodyne Status.app"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.iodyne.kext.pkg" version="1.0.0" onConclusionScript="OnConclusion()" installKBytes="4213" updateKBytes="0">#iodyneKext.pkg</pkg-ref>
    <options hostArchitectures="x86_64,arm64" customize="never" require-scripts="true"/>
    <welcome file="Welcome.rtf" mime-type="text/richtext"/>
    <readme language="en" mime-type="text/html"><![CDATA[<html><body>
<p style="margin: 0px; font: 13px 'Helvetica'"><b>BEFORE YOU INSTALL:</b><br />
To securely load system extensions on macOS, you'll need to perform a few extra steps by following the instructions below.<br /><br />

For Apple Silicon Macs, this requires <a href="https://support.apple.com/guide/mac-help/change-security-settings-startup-disk-a-mac-mchl768f7291/mac">modifying Security Policy</a> before installation to enable authenticated system extensions to load.<br /><br />

For all Macs, you will need to allow the system extension to load from the Privacy & Security pane of System Settings.<br /><br />

For step-by-step instructions, review the Readme file included with this installer, or <a href="https://r.iodyne.com/mac/install">visit our website</a> for more information.</p></body></html>]]></readme>
    <license file="License.rtf" mime-type="text/richtext"/>
    <conclusion file="Conclusion.rtf" mime-type="text/richtext"/>
    <background file="iodyne_logotag.pdf" alignment="bottomleft" scaling="none" mime-type="image/pdf"/>
    <background-darkAqua file="iodyne_logotag-dark.pdf" alignment="bottomleft" scaling="none" mime-type="image/pdf"/>
    <choices-outline>
        <line choice="choicePreinstall"/>
        <line choice="choiceDefault"/>
    </choices-outline>
    <choice id="choicePreinstall" visible="false" enabled="false" selected="true">
        <pkg-ref id="com.iodyne.pkg.preinstall"/>
    </choice>
    <choice id="choiceDefault" visible="false" enabled="false" selected="Selected('default')">
        <pkg-ref id="com.iodyne.app.pkg"/>
        <pkg-ref id="com.iodyne.kext.pkg"/>
    </choice>
    <script>
function InstallationCheck(prefix) {
    if (system.compareVersions(system.version.ProductVersion, '14.0.0') &lt; 0) {
        my.result.message = 'macOS 14.0 or newer is required.';
        my.result.type = 'Fatal';
        return false;
    }

    return true;
}

function OnConclusion() {
    return "None";
}

function Selected(name) {
    return true;
}
    </script>
    <pkg-ref id="com.iodyne.pkg.preinstall">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.iodyne.kext.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.1.0" CFBundleVersion="5323.0721.5277" id="com.iodyne.kext.storage" path="Library/Extensions/iodyne.kext"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>