<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  Product archive wrapper around the component package produced by pkgbuild.
  pkgbuild alone can only emit a component package, which the Installer renders
  with no artwork and no explanation of what is about to happen; only a product
  archive carries background/welcome/conclusion resources.

  1.10.3 is substituted by build-mac-pkg.sh at build time.
-->
<installer-gui-script minSpecVersion="2">
    <title>OSH - Client</title>
    <organization>com.openlay</organization>
    <!-- No component selection: this product installs exactly one thing. -->
    <options customize="never" require-scripts="true" hostArchitectures="arm64"/>
    <allowed-os-versions>
        <os-version min="11.0"/>
    </allowed-os-versions>
    <!-- Without this the Installer picks the user domain, the component's
         auth="root" cannot be satisfied, and the install dies on the last step
         with "You need to have administrative privileges". The app goes to
         /Applications and postinstall writes /usr/local/bin, so: system domain. -->
    <domains enable_anywhere="false" enable_currentUserHome="false" enable_localSystem="true"/>
    <!-- scaling="tofit", not "none": the artwork is supplied at 2x (1240x836) and
         scaled down into the 620x418 frame, which is what keeps it sharp on
         Retina. At native size the display doubles it and the logo goes soft. -->
    <background file="background.png" mime-type="image/png" alignment="bottomleft" scaling="tofit"/>
    <background-darkAqua file="background.png" mime-type="image/png" alignment="bottomleft" scaling="tofit"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <choices-outline>
        <line choice="default">
            <line choice="vn.moniva.osh"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="vn.moniva.osh" visible="false">
        <pkg-ref id="vn.moniva.osh"/>
    </choice>
    <pkg-ref id="vn.moniva.osh" version="1.10.3" onConclusion="none" installKBytes="292255" updateKBytes="0">#component.pkg</pkg-ref>
    <pkg-ref id="vn.moniva.osh">
        <bundle-version>
            <bundle CFBundleShortVersionString="3.1.0" CFBundleVersion="0.0.0" id="com.electron.reactive" path="OSH-Client.app/Contents/Frameworks/ReactiveObjC.framework"/>
            <bundle CFBundleVersion="1.10.3" id="com.openlay.osh.helper" path="OSH-Client.app/Contents/Frameworks/OSH-Client Helper.app"/>
            <bundle CFBundleVersion="1.10.3" id="com.openlay.osh.helper.Renderer" path="OSH-Client.app/Contents/Frameworks/OSH-Client Helper (Renderer).app"/>
            <bundle CFBundleVersion="1.10.3" id="com.openlay.osh.helper.Plugin" path="OSH-Client.app/Contents/Frameworks/OSH-Client Helper (Plugin).app"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="1" id="com.github.Squirrel" path="OSH-Client.app/Contents/Frameworks/Squirrel.framework"/>
            <bundle CFBundleVersion="43.2.0" id="com.github.Electron.framework" path="OSH-Client.app/Contents/Frameworks/Electron Framework.framework"/>
            <bundle CFBundleVersion="1.10.3" id="com.openlay.osh.helper.GPU" path="OSH-Client.app/Contents/Frameworks/OSH-Client Helper (GPU).app"/>
            <bundle CFBundleShortVersionString="1.0" CFBundleVersion="0.0.0" id="com.electron.mantle" path="OSH-Client.app/Contents/Frameworks/Mantle.framework"/>
            <bundle CFBundleShortVersionString="0.1.0" CFBundleVersion="1" id="com.openlay.osh" path="OSH-Client.app/Contents/Resources/build/osh.app"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>