<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- Pick Pocket macOS installer wizard.
     Three independently selectable components so a user who only runs Logic
     can skip the VST3 (and vice versa). Plug-ins go to the SYSTEM folders
     (/Library/Audio/Plug-Ins) — that's what every DAW scans by default and
     what commercial plug-ins ship; the installer asks for an admin password
     once, which is the expected macOS behaviour for a .pkg.
     0.1.9 is substituted by build-pkg.sh. -->
<installer-gui-script minSpecVersion="2">
    <title>Pick Pocket</title>
    <organization>com.yurtrock</organization>
    <options customize="always" require-scripts="false" rootVolumeOnly="true" hostArchitectures="arm64,x86_64"/>
    <welcome file="welcome.html" mime-type="text/html"/>
    <license file="license.html" mime-type="text/html"/>
    <conclusion file="conclusion.html" mime-type="text/html"/>
    <!-- Light plate with the black mark for normal appearance. Dark mode gets
         its own: macOS draws the installer's own step labels light there, so a
         white plate would render them invisible. -->
    <background file="background.png" mime-type="image/png" alignment="center" scaling="tofit"/>
    <background-darkAqua file="background-dark.png" mime-type="image/png" alignment="center" scaling="tofit"/>
    <!-- macOS 11+: the plug-in is universal, but the WebView UI needs a
         modern WKWebView. -->
    <volume-check>
        <allowed-os-versions>
            <os-version min="11.0"/>
        </allowed-os-versions>
    </volume-check>
    <choices-outline>
        <line choice="choice.vst3"/>
        <line choice="choice.au"/>
        <line choice="choice.app"/>
    </choices-outline>
    <choice id="choice.vst3" visible="true" title="VST3 Plug-In" description="For Ableton Live, Studio One, Cubase, Reaper, Bitwig and most other DAWs. Installs to /Library/Audio/Plug-Ins/VST3.">
        <pkg-ref id="com.yurtrock.pickpocket.vst3"/>
    </choice>
    <choice id="choice.au" visible="true" title="Audio Unit (AU) Plug-In" description="For Logic Pro and GarageBand. Installs to /Library/Audio/Plug-Ins/Components.">
        <pkg-ref id="com.yurtrock.pickpocket.au"/>
    </choice>
    <choice id="choice.app" visible="true" title="Standalone App" description="Run Pick Pocket on its own, without a DAW. Installs to /Applications.">
        <pkg-ref id="com.yurtrock.pickpocket.app"/>
    </choice>
    <pkg-ref id="com.yurtrock.pickpocket.vst3" version="0.1.9" onConclusion="none" installKBytes="22585" updateKBytes="0">#PickPocketVST3.pkg</pkg-ref>
    <pkg-ref id="com.yurtrock.pickpocket.au" version="0.1.9" onConclusion="none" installKBytes="22466" updateKBytes="0">#PickPocketAU.pkg</pkg-ref>
    <pkg-ref id="com.yurtrock.pickpocket.app" version="0.1.9" onConclusion="none" installKBytes="22830" updateKBytes="0">#PickPocketApp.pkg</pkg-ref>
    <pkg-ref id="com.yurtrock.pickpocket.vst3">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.1.0" CFBundleVersion="0.1.0" id="com.yurtrock.pickpocket" path="Pick Pocket.vst3"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.yurtrock.pickpocket.au">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.1.0" CFBundleVersion="0.1.0" id="com.yurtrock.pickpocket" path="Pick Pocket.component"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="com.yurtrock.pickpocket.app">
        <bundle-version>
            <bundle CFBundleShortVersionString="0.1.0" CFBundleVersion="0.1.0" id="com.yurtrock.pickpocket" path="Pick Pocket.app"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>