<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  Distribution for the macOS .pkg (scripts/package-installer-mac.sh injects
  0.1.5). It exists for ONE reason: `enable_currentUserHome` only, which
  is what makes this a per-user install with NO admin prompt — parity with the
  Windows NSIS installer. Installer then treats the component's install
  location (pkgbuild's install-location flag) as relative to the user's home, so
  the payload lands in ~/Library/Application Support/Magnific/Affinity Plugin.

  Do not enable enable_localSystem: a system-domain install authenticates as
  admin and would put the bundle in /Library, which the conclusion text (and
  the folder the user adds in Affinity) does not point at.
-->
<installer-gui-script minSpecVersion="2">
    <title>Magnific for Affinity</title>
    <options customize="never" require-scripts="false" rootVolumeOnly="false"/>
    <domains enable_anywhere="false" enable_currentUserHome="true" enable_localSystem="false"/>
    <!-- Same mark as the bundles' icon; Installer draws it on every pane, so an
       unbranded installer is the first thing a user sees of the plugin.
       scaling="none" draws the PNG at its POINT size, which Installer takes from
       the file's DPI — so the asset is 232x232px at 144dpi (a 96pt mark with a
       20pt margin baked in as transparent pixels, since bottomleft glues it to
       the window corner). A 72dpi asset would be drawn at its pixel size and
       spill over the step list and the content pane. Keep the DPI when you
       regenerate it from the mark in Magnific.icns. -->
    <background file="pkg-background.png" alignment="bottomleft" scaling="none"/>
    <background-darkAqua file="pkg-background.png" alignment="bottomleft" scaling="none"/>
    <!-- The one step no installer can automate — see pkg-conclusion.html. -->
    <conclusion file="pkg-conclusion.html" mime-type="text/html"/>
    <choices-outline>
        <line choice="default"/>
    </choices-outline>
    <choice id="default" visible="false">
        <pkg-ref id="com.magnific.affinity-plugin"/>
    </choice>
    <pkg-ref id="com.magnific.affinity-plugin" version="0.1.5" installKBytes="1718" updateKBytes="0">#component.pkg</pkg-ref>
    <pkg-ref id="com.magnific.affinity-plugin">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.1.5" CFBundleVersion="0.1.5" id="com.magnific.affinity-plugin" path="Magnific.plugin"/>
            <bundle CFBundleShortVersionString="0.1.5" CFBundleVersion="0.1.5" id="com.magnific.affinity-panel-host" path="Magnific.plugin/Contents/Resources/MagnificAffinity.app"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>