<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  distribution.xml — productbuild manifest for the LOTSE Helper PKG.

  Wraps the component package built by pkgbuild (= the staged
  filesystem tree) into a distribution-style PKG that ships with the
  standard macOS Installer UI: welcome screen, license, target choice,
  installation progress.

  Built by apps/macos-helper/scripts/build-pkg.sh — invokes:
      productbuild
          [dash dash distribution]  distribution.xml
          [dash dash package-path]  build/
          [dash dash sign]          "Developer ID Installer: …"
          build/cloud.lotse.app.helper-X.Y.Z.pkg

  (XML comments forbid the literal double-hyphen sequence, hence
   the placeholder bracket notation above.)

  The product is then notarized + stapled.
-->
<installer-gui-script minSpecVersion="2">
    <title>LOTSE Helper</title>
    <organization>cloud.lotse</organization>
    <!-- macOS Sequoia 15+ or Tahoe 26+. Matches the LOTSE-MAS-App's
         deployment target (macOS 14+) — the helper is happy on the
         same range but pinning a floor avoids "Installer thinks
         this system is too old" surprises on weird VMs. -->
    <volume-check>
        <allowed-os-versions>
            <os-version min="14.0"/>
        </allowed-os-versions>
    </volume-check>
    <!-- Single payload-bearing component. -->
    <choices-outline>
        <line choice="default">
            <line choice="cloud.lotse.app.helper"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="cloud.lotse.app.helper" visible="false" title="LOTSE Helper" description="Privileged background daemon enabling advanced LOTSE features (auto-MTU-adjust, PMTU probing, Wi-Fi power toggle, FDA-rich Wi-Fi history read)." start_selected="true">
        <pkg-ref id="cloud.lotse.app.helper"/>
    </choice>
    <pkg-ref id="cloud.lotse.app.helper" version="1.12.1" onConclusion="none" installKBytes="938" updateKBytes="0">#cloud.lotse.app.helper-component.pkg</pkg-ref>
    <pkg-ref id="cloud.lotse.app.helper">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.12.1" CFBundleVersion="12" id="cloud.lotse.app.helper" path="usr/local/lib/cloud.lotse.app/LOTSE Helper.app"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>