<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <!--
      Stock macOS Installer.app layout:
      Introduction (welcome) → Important Information (readme) → License (Agree/Disagree)
      → Installation → Summary (conclusion).
      Pages are native RTF so Installer draws system chrome (light and dark).
    -->
    <title>Verae Print Stamp</title>
    <organization>ai.verae</organization>
    <options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64" rootVolumeOnly="true"/>
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <!-- Subtle left-side brand only; step list remains system UI -->
    <background file="background.png" mime-type="image/png" alignment="topleft" scaling="none"/>
    <background-darkAqua file="background-dark.png" mime-type="image/png" alignment="topleft" scaling="none"/>
    <!-- Order matches a standard OS X product install -->
    <welcome file="welcome.rtf" mime-type="application/rtf"/>
    <readme file="readme.rtf" mime-type="application/rtf"/>
    <license file="license.rtf" mime-type="application/rtf"/>
    <conclusion file="conclusion.rtf" mime-type="application/rtf"/>
    <installation-check script="pm_install_check()"/>
    <script><![CDATA[
    function pm_install_check() {
        if (!(system.compareVersions(system.version.ProductVersion, '14.0') >= 0)) {
            my.result.type = 'Fatal';
            my.result.message = 'Verae Print Stamp requires macOS 14 or later.';
            return false;
        }
        return true;
    }
    ]]></script>
    <choices-outline>
        <line choice="verae-print-stamp"/>
    </choices-outline>
    <choice id="verae-print-stamp" visible="false" title="Verae Print Stamp" description="Install Verae Print Stamp (PrintIt), product ID ai.verae.print-stamp.">
        <pkg-ref id="ai.verae.print-stamp.pkg"/>
    </choice>
    <pkg-ref id="ai.verae.print-stamp.pkg" version="0.3.6" auth="Root" onConclusion="none" installKBytes="51395" updateKBytes="0">#VeraePrintStamp-component.pkg</pkg-ref>
    <pkg-ref id="ai.verae.print-stamp.pkg">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.3.6" CFBundleVersion="0.3.6" id="ai.verae.print-stamp" path="Applications/Verae Print Stamp.app"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>