<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  productbuild distribution for the ZoneRails Server pkg.

  This is a template. build-pkg.sh copies it to a temporary directory and
  substitutes the version, the host architecture and the component package
  name (the @-delimited placeholders below) before calling productbuild.
  They are not defaults to fall back on: a placeholder left in a shipped
  installer would make the pkg refuse to open on every Mac, so the build
  fails if any of them survives the substitution.
-->
<installer-gui-script minSpecVersion="2">
    <title>ZoneRails Server</title>
    <organization>com.aholdings</organization>
    <!-- rootVolumeOnly: the payload is a launchd daemon and absolute paths
         under /opt and /Library. Installing it onto a secondary volume would
         write a tree launchd never looks at, so offer the boot volume only. -->
    <options customize="never" require-scripts="true" rootVolumeOnly="true" hostArchitectures="x86_64"/>
    <!-- The EULA the customer must accept. productbuild reads it from
         the resources directory, which build-pkg.sh fills from the bundle so
         the installer shows the same text the package ships. -->
    <license file="EULA.txt" mime-type="text/plain"/>
    <!-- launchd's bootstrap subcommand and the plist keys used here need
         Monterey or newer; the bundled Node also has no darwin build for
         older systems. -->
    <allowed-os-versions>
        <os-version min="12.0"/>
    </allowed-os-versions>
    <pkg-ref id="com.aholdings.zonerails-server" version="1.8.1">
        <bundle-version/>
    </pkg-ref>
    <choices-outline>
        <line choice="default">
            <line choice="com.aholdings.zonerails-server"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.aholdings.zonerails-server" visible="false">
        <pkg-ref id="com.aholdings.zonerails-server"/>
    </choice>
    <pkg-ref id="com.aholdings.zonerails-server" installKBytes="191421" updateKBytes="0">#zonerails-server-component.pkg</pkg-ref>
</installer-gui-script>