<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <title>Aethel 2.16.1</title>
    <options customize="always" require-scripts="false" rootVolumeOnly="true"/>
    <allowed-os-versions>
        <os-version min="12.0"/>
    </allowed-os-versions>
    <choices-outline>
        <line choice="upgrade"/>
        <line choice="cleaninstall"/>
        <line choice="uninstall"/>
    </choices-outline>
    <choice id="upgrade" title="Install/Upgrade" description="Installs Aethel 2.16.1 into the Applications folder, replacing any previous version. Your data and settings are kept. Aethel starts when the installation finishes." start_selected="true" selected="!choices['cleaninstall'].selected &amp;&amp; !choices['uninstall'].selected">
        <pkg-ref id="com.aethel.aethel.installer"/>
    </choice>
    <choice id="cleaninstall" title="Clean Install (Removes old Versions)" description="Permanently deletes ALL existing Aethel data on this Mac — memories, chat history, credential vault, license activation, settings and logs — then installs Aethel 2.16.1 fresh, as if on a new Mac. Cannot be undone. Aethel starts when the installation finishes." start_selected="false" selected="my.choice.selected &amp;&amp; !choices['upgrade'].selected &amp;&amp; !choices['uninstall'].selected">
        <pkg-ref id="com.aethel.aethel.erasedata"/>
        <pkg-ref id="com.aethel.aethel.installer"/>
    </choice>
    <choice id="uninstall" title="Uninstall" description="Removes Aethel from this Mac completely: the app, its auto-start entry, and ALL data — memories, chat history, credential vault, license activation, settings and logs. Cannot be undone. The installer will report &quot;successful&quot; — for this choice that means the removal completed." start_selected="false" selected="my.choice.selected &amp;&amp; !choices['upgrade'].selected &amp;&amp; !choices['cleaninstall'].selected">
        <pkg-ref id="com.aethel.aethel.uninstall"/>
        <pkg-ref id="com.aethel.aethel.erasedata"/>
    </choice>
    <pkg-ref id="com.aethel.aethel.installer" version="2.16.1" onConclusion="none" installKBytes="106577" updateKBytes="0">#Aethel-app.pkg</pkg-ref>
    <pkg-ref id="com.aethel.aethel.uninstall" version="2.16.1" onConclusion="none" installKBytes="0" updateKBytes="0">#Aethel-uninstall.pkg</pkg-ref>
    <pkg-ref id="com.aethel.aethel.erasedata" version="2.16.1" onConclusion="none" installKBytes="0" updateKBytes="0">#Aethel-erasedata.pkg</pkg-ref>
    <pkg-ref id="com.aethel.aethel.installer">
        <bundle-version>
            <bundle CFBundleShortVersionString="2.16.1" CFBundleVersion="2.16.1" id="com.aethel.aethel" path="Applications/Aethel.app"/>
            <bundle CFBundleShortVersionString="3.12.9, (c) 2001-2023 Python Software Foundation." CFBundleVersion="3.12.9" id="org.python.python" path="Applications/Aethel.app/Contents/Frameworks/Python.framework"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.aethel.aethel.erasedata">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.aethel.aethel.uninstall">
        <bundle-version/>
    </pkg-ref>
</installer-gui-script>