<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>ClamXAV v3.8</title>
    <background file="Background.png" mime-type="image/png"/>
    <pkg-ref id="uk.co.canimaansoftware.ClamXAV-installer">
        <bundle-version>
            <bundle CFBundleShortVersionString="1.24.0 a-26-g1ff3ed7f" CFBundleVersion="1.24.0" id="org.sparkle-project.Sparkle" path="Applications/ClamXAV.app/Contents/Frameworks/Sparkle.framework"/>
            <bundle CFBundleShortVersionString="3.8" CFBundleVersion="10918" id="uk.co.canimaansoftware.ClamXAV-UI-Helper" path="Applications/ClamXAV.app/Contents/MacOS/ClamXAV UI Helper.app"/>
            <bundle CFBundleShortVersionString="3.8" CFBundleVersion="10918" id="uk.co.canimaansoftware.ClamXAV" path="Applications/ClamXAV.app"/>
            <bundle CFBundleShortVersionString="1.24.0 a-26-g1ff3ed7f" CFBundleVersion="1.24.0" id="org.sparkle-project.Sparkle.Autoupdate" path="Applications/ClamXAV.app/Contents/Frameworks/Sparkle.framework/Versions/A/Resources/Autoupdate.app"/>
        </bundle-version>
    </pkg-ref>
    <options customize="never" require-scripts="false"/>
    <options customize="never" hostArchitectures="x86_64,arm64"/>
    <choices-outline>
        <line choice="default">
            <line choice="uk.co.canimaansoftware.ClamXAV-installer"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="uk.co.canimaansoftware.ClamXAV-installer" visible="false">
        <pkg-ref id="uk.co.canimaansoftware.ClamXAV-installer"/>
    </choice>
    <pkg-ref id="uk.co.canimaansoftware.ClamXAV-installer" version="3.8" onConclusion="none" installKBytes="73707">#app.pkg</pkg-ref>
    <license file="EULA.rtf"/>
    <welcome file="Welcome.rtf"/>
    <allowed-os-versions>
        <os-version min="10.10"/>
    </allowed-os-versions>
    <volume-check script="volume_check()"/>
    <script><![CDATA[

		function volume_check () {
			if ( my.target.mountpoint == "/" ) {
				return true
			}
			else{
				// need to set error type
				my.result.type = "Fatal"
				my.result.message = "It can only be installed on the startup disk."
				return false
			}
		}

    ]]></script>
</installer-gui-script>