<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="2">
    <title>OpenMS-GUI</title>
    <welcome file="Welcome.txt"/>
    <readme file="ReadMe.txt"/>
    <license file="License.txt"/>
    <volume-check script="openms_core_installed()">
        <allowed-os-versions>
            <os-version min="15.0"/>
        </allowed-os-versions>
    </volume-check>
    <script><![CDATA[
// The OpenMS GUI is installed into the folder of the OpenMS package of the same version;
// a volume qualifies only if that package is installed on it.
function openms_core_installed()
{
	var root = my.target.mountpoint;
	if (root.charAt(root.length - 1) != '/')
	{
		root = root + '/';
	}
	var library = root + 'Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/libOpenMS.dylib';
	if (system.files.fileExistsAtPath(library))
	{
		return true;
	}
	my.result.type = 'Fatal';
	my.result.title = 'OpenMS 3.7.0-pre-nightly-2026-11-10 is not installed';
	my.result.message = 'The OpenMS GUI is an add-on to OpenMS 3.7.0-pre-nightly-2026-11-10, which is not installed on this volume (' + library + ' does not exist). Install the OpenMS 3.7.0-pre-nightly-2026-11-10 package for all users first, then run this installer again.';
	return false;
}
	]]></script>
    <options allow-external-scripts="no" customize="allow"/>
    <domains enable_anywhere="true" enable_currentUserHome="false" enable_localSystem="true"/>
    <choices-outline>
        <line choice="DependenciesChoice"/>
        <line choice="GUIApplicationsChoice"/>
        <line choice="OpenMS_GUI_headersChoice"/>
        <line choice="cmake_guiChoice"/>
        <line choice="doc_guiChoice"/>
        <line choice="library_guiChoice"/>
    </choices-outline>
    <choice id="DependenciesChoice" title="Qt" start_selected="true" start_enabled="false" start_visible="true" description="The Qt libraries and plugins the GUI applications need." selected="my.choice.selected || choices['library_guiChoice'].selected || choices['GUIApplicationsChoice'].selected || choices['OpenMS_GUI_headersChoice'].selected || choices['cmake_guiChoice'].selected">
        <pkg-ref id="de.openms.gui.Dependencies"/>
    </choice>
    <pkg-ref id="de.openms.gui.Dependencies" version="3.7.0" installKBytes="91753" onConclusion="None" updateKBytes="0">#OpenMS-GUI-3.7.0-pre-nightly-2026-11-10-macOS-Silicon-Dependencies.pkg</pkg-ref>
    <choice id="GUIApplicationsChoice" title="OpenMS GUI applications" start_selected="true" start_enabled="false" start_visible="true" description="TOPPView, TOPPAS, INIFileEditor and the TOPP tools that need the GUI library (ExecutePipeline, ImageCreator)." selected="my.choice.selected &amp;&amp; choices['library_guiChoice'].selected &amp;&amp; choices['DependenciesChoice'].selected">
        <pkg-ref id="de.openms.gui.GUIApplications"/>
    </choice>
    <pkg-ref id="de.openms.gui.GUIApplications" version="3.7.0" installKBytes="1287" onConclusion="None" updateKBytes="0">#OpenMS-GUI-3.7.0-pre-nightly-2026-11-10-macOS-Silicon-GUIApplications.pkg</pkg-ref>
    <choice id="OpenMS_GUI_headersChoice" title="GUI library headers" start_selected="false" start_enabled="true" start_visible="true" description="The headers of the GUI library, for programs that use it." selected="my.choice.selected &amp;&amp; choices['library_guiChoice'].selected &amp;&amp; choices['DependenciesChoice'].selected || choices['cmake_guiChoice'].selected">
        <pkg-ref id="de.openms.gui.OpenMS_GUI_headers"/>
    </choice>
    <pkg-ref id="de.openms.gui.OpenMS_GUI_headers" version="3.7.0" installKBytes="561" onConclusion="None" updateKBytes="0">#OpenMS-GUI-3.7.0-pre-nightly-2026-11-10-macOS-Silicon-OpenMS_GUI_headers.pkg</pkg-ref>
    <choice id="cmake_guiChoice" title="GUI library CMake package" start_selected="false" start_enabled="true" start_visible="true" description="The CMake package of the GUI library (OpenMSGUIConfig.cmake), for programs that use it." selected="my.choice.selected &amp;&amp; choices['OpenMS_GUI_headersChoice'].selected &amp;&amp; choices['library_guiChoice'].selected &amp;&amp; choices['DependenciesChoice'].selected">
        <pkg-ref id="de.openms.gui.cmake_gui"/>
    </choice>
    <pkg-ref id="de.openms.gui.cmake_gui" version="3.7.0" installKBytes="26" onConclusion="None" updateKBytes="0">#OpenMS-GUI-3.7.0-pre-nightly-2026-11-10-macOS-Silicon-cmake_gui.pkg</pkg-ref>
    <choice id="doc_guiChoice" title="Documentation" start_selected="true" start_enabled="true" start_visible="true" description="Documentation of the GUI applications and the GUI library.">
        <pkg-ref id="de.openms.gui.doc_gui"/>
    </choice>
    <pkg-ref id="de.openms.gui.doc_gui" version="3.7.0" installKBytes="23377" onConclusion="None" updateKBytes="0">#OpenMS-GUI-3.7.0-pre-nightly-2026-11-10-macOS-Silicon-doc_gui.pkg</pkg-ref>
    <choice id="library_guiChoice" title="GUI library" start_selected="true" start_enabled="false" start_visible="true" description="The GUI library (OpenMS_GUI), needed by TOPPView, TOPPAS and the other GUI applications." selected="my.choice.selected &amp;&amp; choices['DependenciesChoice'].selected || choices['GUIApplicationsChoice'].selected || choices['OpenMS_GUI_headersChoice'].selected || choices['cmake_guiChoice'].selected">
        <pkg-ref id="de.openms.gui.library_gui"/>
    </choice>
    <pkg-ref id="de.openms.gui.library_gui" version="3.7.0" installKBytes="3239" onConclusion="None" updateKBytes="0">#OpenMS-GUI-3.7.0-pre-nightly-2026-11-10-macOS-Silicon-library_gui.pkg</pkg-ref>
    <background file="openms_logo_corner_small.png" alignment="bottomleft" scaling="none"/>
    <pkg-ref id="de.openms.gui.Dependencies">
        <bundle-version>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtDBus" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtDBus.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtCore" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtCore.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtSvg" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtSvg.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtPrintSupport" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtPrintSupport.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtWidgets" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtWidgets.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtOpenGL" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtOpenGL.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtOpenGLWidgets" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtOpenGLWidgets.framework"/>
            <bundle CFBundleShortVersionString="6.12" CFBundleVersion="6.12.0" id="org.qt-project.QtGui" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/lib/QtGui.framework"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="de.openms.gui.GUIApplications">
        <bundle-version>
            <bundle CFBundleShortVersionString="3.7.0" CFBundleVersion="3.7.0" id="de.openms.TOPPView" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/TOPPView.app"/>
            <bundle CFBundleShortVersionString="3.7.0" CFBundleVersion="3.7.0" id="de.openms.INIFileEditor" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/INIFileEditor.app"/>
            <bundle CFBundleShortVersionString="3.7.0" CFBundleVersion="3.7.0" id="de.openms.TOPPAS" path="Applications/OpenMS-3.7.0-pre-nightly-2026-11-10/TOPPAS.app"/>
        </bundle-version>
    </pkg-ref>
    <pkg-ref id="de.openms.gui.OpenMS_GUI_headers">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="de.openms.gui.cmake_gui">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="de.openms.gui.doc_gui">
        <bundle-version/>
    </pkg-ref>
    <pkg-ref id="de.openms.gui.library_gui">
        <bundle-version/>
    </pkg-ref>
    <product id="de.openms.gui" version="3.7.0"/>
</installer-gui-script>