<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>Wazuh Agent AGtech (AppleSilicon)</title>
    <organization>ch.agtech</organization>
    <options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>
    <domains enable_localSystem="true"/>
    <installation-check script="giusto()"/>
    <script><![CDATA[
function giusto() {
  if (system.sysctl('hw.optional.arm64') == 1) return true;
  my.result.title = 'Mac non compatibile'; my.result.message = "Questo installer e' per i Mac con chip Apple (M1, M2, M3...). Usa la versione Intel."; my.result.type = 'Fatal'; return false;
}
]]></script>
    <choices-outline>
        <line choice="env"/>
        <line choice="wazuh"/>
        <line choice="post"/>
    </choices-outline>
    <choice id="env" visible="false">
        <pkg-ref id="ch.agtech.wazuh-env"/>
    </choice>
    <choice id="wazuh" visible="false">
        <pkg-ref id="com.wazuh.pkg.wazuh-agent"/>
    </choice>
    <choice id="post" visible="false">
        <pkg-ref id="ch.agtech.wazuh-post"/>
    </choice>
    <pkg-ref id="ch.agtech.wazuh-env" version="1.0" installKBytes="0" updateKBytes="0">#agtech-env.pkg</pkg-ref>
    <pkg-ref id="com.wazuh.pkg.wazuh-agent" version="4.14.7" installKBytes="19571" updateKBytes="0">#wazuh-arm64.pkg</pkg-ref>
    <pkg-ref id="ch.agtech.wazuh-post" version="1.0" installKBytes="0" updateKBytes="0">#agtech-post.pkg</pkg-ref>
    <pkg-ref id="ch.agtech.wazuh-env">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="com.wazuh.pkg.wazuh-agent">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="ch.agtech.wazuh-post">
        <bundle-version/>
    </pkg-ref>
</installer-gui-script>