<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  Product archive definition. Exists mainly to carry two things a bare component package
  cannot: the architecture gate below, and the welcome/licence resources.
-->
<installer-gui-script minSpecVersion="2">
    <title>Ambir Scanner Bridge</title>
    <organization>com.ambir</organization>
    <options customize="never" require-scripts="true" rootVolumeOnly="true" hostArchitectures="arm64,x86_64"/>
    <!--
      macOS 13 Ventura floor. Set by pinning Vision's text-recognition revision 3, so that the
      same scan yields the same OCR text on every machine rather than drifting with the OS
      version (docs/macos-port.md §6.3).

      No architecture gate: the package carries a self-contained build for both Apple Silicon
      and Intel, and the postinstall selects at install time.
    -->
    <volume-check>
        <allowed-os-versions>
            <os-version min="13.0"/>
        </allowed-os-versions>
    </volume-check>
    <welcome file="welcome.html" mime-type="text/html"/>
    <!--
      Licence agreement. productbuild renders this as a pane with Agree / Disagree; choosing
      Disagree ends the installation without writing anything, which is the required behaviour.
      The file is staged from Installer/ at build time so there is a single copy in the repo.
    -->
    <license file="ASWC_SDK_LICENSE_AND_SUBSCRIPTION_AGREEMENT.rtf" mime-type="application/rtf"/>
    <pkg-ref id="com.ambir.aswcn.scannerbridge">
        <bundle-version/>
    </pkg-ref>
    <choices-outline>
        <line choice="default">
            <line choice="com.ambir.aswcn.scannerbridge"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.ambir.aswcn.scannerbridge" visible="false">
        <pkg-ref id="com.ambir.aswcn.scannerbridge"/>
    </choice>
    <pkg-ref id="com.ambir.aswcn.scannerbridge" version="4.1.0.0" onConclusion="none" installKBytes="206287" updateKBytes="0">#ScannerBridge.pkg</pkg-ref>
</installer-gui-script>