<?xml version="1.0"?>
<installer-gui-script minSpecVersion="1">
    <title>IDUS_ECALI_DISTRIBUTION_TITLE</title>
    <background file="background.png" alignment="topleft" scaling="none"/>
    <domains enable_anywhere="true"/>
    <installation-check script="pm_install_check();"/>
    <volume-check script="pm_volume_check();"/>
    <script><![CDATA[
		function pm_volume_check() {
			if(!(my.target.mountpoint == '/')) {
				my.result.title = system.localizedString('IDUS_ECALI_VERIFY_FAILURE');
				my.result.message = system.localizedString('IDUS_ECALI_VERIFY_WRONG_TARGET');
				my.result.type = 'Fatal';
				return false;
			}
			if(!(my.target.availableKilobytes > 400 * 1024 * 1024)) {
				my.result.title = system.localizedString('IDUS_ECALI_VERIFY_FAILURE');
				my.result.message = system.localizedStringWithFormat("IDUS_ECALI_VERIFY_MIN_SPACE", 400);
				my.result.type = 'Fatal';
				return false;
			}
			return true;
		}

		function pm_install_check() {
			if(!(system.compareVersions(system.version.ProductVersion, '10.12.0') >= 0)) {
				my.result.title = system.localizedString('IDUS_ECALI_VERIFY_ERROR');
				my.result.message = system.localizedStringWithFormat('IDUS_ECALI_VERIFY_ALLOWED_OS', 10.12, 26);
				my.result.type = 'Fatal';
				return false;
			}

			if(!(system.sysctl('hw.memsize') > 300 * 1024 * 1024)) {
				my.result.title = system.localizedString('IDUS_ECALI_VERIFY_WARNING');
				my.result.message = system.localizedStringWithFormat('IDUS_ECALI_VERIFY_MIN_MEMORY', 300);
				my.result.type = 'Warn';
			}
			return true;
		}
]]></script>
    <welcome mime-type="text/plain" file="Welcome"/>
    <pkg-ref id="com.eset.liveinstaller">
        <bundle-version/>
    </pkg-ref>
    <options customize="never" require-scripts="false" hostArchitectures="x86_64,arm64"/>
    <choices-outline>
        <line choice="default">
            <line choice="com.eset.liveinstaller"/>
        </line>
    </choices-outline>
    <choice id="default"/>
    <choice id="com.eset.liveinstaller" visible="false">
        <pkg-ref id="com.eset.liveinstaller"/>
    </choice>
    <pkg-ref id="com.eset.liveinstaller" version="1.0.1020.0" onConclusion="none" installKBytes="0">#LiveInstaller.pkg</pkg-ref>
    <product version="1.0.1020.0"/>
</installer-gui-script>