<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!--
  distribution.xml: the Apple Installer package's definition
  (docs/INSTALLER.md section 4). build-pkg.sh fills in 1.0.2.

  Stock Installer throughout: no welcome or conclusion file, so the
  Introduction and Summary pages show Apple's own text, as on Windows the
  wizard shows Inno's. We supply only the title, the license and the
  background. Steps the customer sees: Introduction, License (with the
  Agree / Disagree sheet), Installation Type, Installation, Summary.
-->
<installer-gui-script minSpecVersion="2">
    <title>mollusk</title>
    <license file="license.txt" mime-type="text/plain"/>
    <background file="background.tiff" mime-type="image/tiff" alignment="bottomleft" scaling="none"/>
    <background-darkAqua file="background-dark.tiff" mime-type="image/tiff" alignment="bottomleft" scaling="none"/>
    <!-- one universal app, Apple silicon and Intel; nothing to customize.
         One small script: the component's postinstall opens mollusk after a
         person installs it (Garrett, 28 Sep); the install never depends on
         it, so require-scripts stays false. -->
    <options customize="never" require-scripts="false" hostArchitectures="arm64,x86_64"/>
    <!-- Where it can go (Garrett, 29 Sep: "The installer for mac won't let me
         install for only the current user or on a custom drive"): all users
         (/Applications, the default), just the current user
         (~/Applications, no administrator password), or another disk
         (/Volumes/<disk>/Applications). The app needs nothing outside its
         bundle, and its data folder is always the user's own. -->
    <domains enable_anywhere="true" enable_currentUserHome="true" enable_localSystem="true"/>
    <!-- macOS 13 Ventura or later: Qt 6.11's floor. Checked on the Mac that
         runs the installer, not on the destination disk: a volume-check with
         allowed-os-versions refuses any disk without macOS on it ("Cannot
         install on volume ... because it is disabled. macOS isn't
         installed", CI 29 Sep), which ruled out installing on another disk. -->
    <installation-check script="mollusk_mac_ok()"/>
    <script><![CDATA[
    function mollusk_mac_ok() {
        if (system.compareVersions(system.version.ProductVersion, '13.0') < 0) {
            my.result.type = 'Fatal';
            my.result.title = 'mollusk needs macOS 13 or later';
            my.result.message = 'This Mac has macOS ' + system.version.ProductVersion + '. mollusk runs on macOS 13 Ventura and later.';
            return false;
        }
        return true;
    }
    ]]></script>
    <choices-outline>
        <line choice="default">
            <line choice="audio.mollusk.mollusk"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="audio.mollusk.mollusk" visible="false">
        <!-- an update: Installer asks the customer to quit a running mollusk
             first (its own "conversions are running" question then applies),
             rather than replacing the app under it -->
        <pkg-ref id="audio.mollusk.mollusk">
            <must-close>
                <app id="audio.mollusk.mollusk"/>
            </must-close>
        </pkg-ref>
    </choice>
    <pkg-ref id="audio.mollusk.mollusk" version="1.0.2" onConclusion="none" installKBytes="181554" updateKBytes="0">#mollusk-component.pkg</pkg-ref>
    <pkg-ref id="audio.mollusk.mollusk">
        <bundle-version>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickEffects" path="Applications/mollusk.app/Contents/Frameworks/QtQuickEffects.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQmlModels" path="Applications/mollusk.app/Contents/Frameworks/QtQmlModels.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtDBus" path="Applications/mollusk.app/Contents/Frameworks/QtDBus.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtOpenGL" path="Applications/mollusk.app/Contents/Frameworks/QtOpenGL.framework"/>
            <bundle CFBundleShortVersionString="1.0.2" CFBundleVersion="308" id="audio.mollusk.mollusk" path="Applications/mollusk.app"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2MacOSStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2MacOSStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2UniversalStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2UniversalStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtSql" path="Applications/mollusk.app/Contents/Frameworks/QtSql.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickTemplates2" path="Applications/mollusk.app/Contents/Frameworks/QtQuickTemplates2.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtGui" path="Applications/mollusk.app/Contents/Frameworks/QtGui.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtNetwork" path="Applications/mollusk.app/Contents/Frameworks/QtNetwork.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2MaterialStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2MaterialStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtLabsFolderListModel" path="Applications/mollusk.app/Contents/Frameworks/QtLabsFolderListModel.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQmlCore" path="Applications/mollusk.app/Contents/Frameworks/QtQmlCore.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2FluentWinUI3StyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2FluentWinUI3StyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickDialogs2" path="Applications/mollusk.app/Contents/Frameworks/QtQuickDialogs2.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickLayouts" path="Applications/mollusk.app/Contents/Frameworks/QtQuickLayouts.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQmlMeta" path="Applications/mollusk.app/Contents/Frameworks/QtQmlMeta.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickDialogs2Utils" path="Applications/mollusk.app/Contents/Frameworks/QtQuickDialogs2Utils.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickParticles" path="Applications/mollusk.app/Contents/Frameworks/QtQuickParticles.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQmlWorkerScript" path="Applications/mollusk.app/Contents/Frameworks/QtQmlWorkerScript.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickVectorImageGenerator" path="Applications/mollusk.app/Contents/Frameworks/QtQuickVectorImageGenerator.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2FusionStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2FusionStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuick" path="Applications/mollusk.app/Contents/Frameworks/QtQuick.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickDialogs2QuickImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickDialogs2QuickImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2Material" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2Material.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtCore" path="Applications/mollusk.app/Contents/Frameworks/QtCore.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2IOSStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2IOSStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickShapesDesignHelpers" path="Applications/mollusk.app/Contents/Frameworks/QtQuickShapesDesignHelpers.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickVectorImageHelpers" path="Applications/mollusk.app/Contents/Frameworks/QtQuickVectorImageHelpers.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2Basic" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2Basic.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtSvg" path="Applications/mollusk.app/Contents/Frameworks/QtSvg.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQml" path="Applications/mollusk.app/Contents/Frameworks/QtQml.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2Imagine" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2Imagine.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQmlLocalStorage" path="Applications/mollusk.app/Contents/Frameworks/QtQmlLocalStorage.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2Impl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2Impl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtWidgets" path="Applications/mollusk.app/Contents/Frameworks/QtWidgets.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2BasicStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2BasicStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2Universal" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2Universal.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2ImagineStyleImpl" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2ImagineStyleImpl.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickShapes" path="Applications/mollusk.app/Contents/Frameworks/QtQuickShapes.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickControls2Fusion" path="Applications/mollusk.app/Contents/Frameworks/QtQuickControls2Fusion.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQmlXmlListModel" path="Applications/mollusk.app/Contents/Frameworks/QtQmlXmlListModel.framework"/>
            <bundle CFBundleShortVersionString="6.11" CFBundleVersion="6.11.2" id="org.qt-project.QtQuickVectorImage" path="Applications/mollusk.app/Contents/Frameworks/QtQuickVectorImage.framework"/>
        </bundle-version>
    </pkg-ref>
</installer-gui-script>