<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <options should-authenticate-reboot="true" should-launch-first-login-optimization="true" customize="never" post-logout="true" allow-install-later="true" affects-system-files="true"/>
    <title>SU_TITLE</title>
    <script/>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <bridge-version build-version="16.16.4507.0.0" build-group="0"/>
    <auxinfo>
        <dict>
            <key>macOSProductBuildVersion</key>
            <string>18E226</string>
            <key>macOSProductVersion</key>
            <string>10.14.4</string>
            <key>macOSVariant</key>
            <string>Customer</string>
        </dict>
    </auxinfo>
    <system-image id="macOSUpd10.14.4.RecoveryHDUpdate">
        <pkg-ref id="com.apple.pkg.macOSUpd10.14.4.RecoveryHDUpdate.18E226"/>
    </system-image>
    <license file="License.rtf"/>
    <readme file="SUDescription.html"/>
    <choices-outline>
        <line choice="macOSUpd10.14.4"/>
    </choices-outline>
    <choices-outline ui="firmware">
        <line choice="macOSUpd10.14.4_Firmware"/>
    </choices-outline>
    <choice id="macOSUpd10.14.4_Firmware" title="SU_TITLE" start_enabled="true" start_selected="true" visible="false">
        <pkg-ref id="com.apple.pkg.FirmwareUpdate" auth="Root" packageIdentifier="com.apple.pkg.FirmwareUpdate">#FirmwareUpdate.pkg</pkg-ref>
    </choice>
    <choice id="macOSUpd10.14.4" title="SU_TITLE" visible="Plist6(my.target.mountpoint)" start_enabled="true" start_selected="true">
        <pkg-ref id="com.apple.pkg.update.os.10.14.4.18E226" auth="Root" packageIdentifier="com.apple.pkg.update.os.10.14.4.18E226" onConclusion="RequireRestart">#macOSUpd10.14.4.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.macOSUpd10.14.4.RecoveryHDUpdate.18E226" auth="Root" packageIdentifier="com.apple.pkg.macOSUpd10.14.4.RecoveryHDUpdate.18E226" active="RecoveryHD7(my.target.mountpoint)" installEnvironment="ClientOS">#macOSUpd10.14.4.RecoveryHDUpdate.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.macOSBrain" auth="Root" packageIdentifier="com.apple.pkg.macOSBrain" installEnvironment="ClientOS">#macOSBrain.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.SecureBoot" auth="Root" packageIdentifier="com.apple.pkg.SecureBoot">#SecureBoot.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.EmbeddedOSFirmware" auth="Root" packageIdentifier="com.apple.pkg.EmbeddedOSFirmware">#EmbeddedOSFirmware.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.FirmwareUpdate" auth="Root" packageIdentifier="com.apple.pkg.FirmwareUpdate">#FirmwareUpdate.pkg</pkg-ref>
        <pkg-ref id="com.apple.update.fullbundleupdate.18E226" auth="Root" packageIdentifier="com.apple.update.fullbundleupdate.18E226">#FullBundleUpdate.pkg</pkg-ref>
    </choice>
    <script>
function InstallationCheck(prefix) {
	var cpuFeatures = system.sysctl( 'machdep.cpu.features' );
	cpuFeatures=cpuFeatures.split(" ");
	for( var i = 0; i &lt; cpuFeatures.length; i++ ){
		if( cpuFeatures[i] == "VMM" ){
			return true;
		}
	}
	if (system.compareVersions(system.version.ProductVersion, '10.14') &lt; 0 || system.compareVersions(system.version.ProductVersion, '10.15') &gt;= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_7E7AEE96CA', '10.14');
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function VolumeCheck(prefix) {
	var myTargetSystemVersion = (my.target.systemVersion || system.files.plistAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist"));
	if (!myTargetSystemVersion || system.compareVersions(myTargetSystemVersion.ProductVersion, '10.14') &lt; 0 || system.compareVersions(myTargetSystemVersion.ProductVersion, '10.15') &gt;= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_7E7AEE96CA', '10.14');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_ABA5BBB51F');
	if (!Not0(my.target.mountpoint) || !Not2(my.target.mountpoint) || !AppleInternalCheck4(my.target.mountpoint) || !Plist5(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function Not0(prefix) {
	if (!(FileSystem1(prefix))) {
		return true;
	}
	my.result.message = system.localizedString('ERROR_74CFD58E51');
	return false;
}
function FileSystem1(prefix) {
	if (my.target.filesystem &amp;&amp; my.target.filesystem.type == 'hfs') {
		return true;
	}
	return false;
}
function Not2(prefix) {
	if (!(FileSystem3(prefix))) {
		return true;
	}
	return false;
}
function FileSystem3(prefix) {
	if (my.target.filesystem &amp;&amp; my.target.filesystem.safeToModifyVolume == '0') {
		return true;
	}
	return false;
}
function AppleInternalCheck4(prefix) {
	if (!(system.files.fileExistsAtPath(prefix + '/AppleInternal') &amp;&amp; my.target.receiptForIdentifier('com.apple.pkg.InternalOSContent') &amp;&amp; system.files.fileExistsAtPath(prefix + '/System/Library/Receipts/com.apple.pkg.InternalOSContent.plist'))) {
		return true;
	}
	return false;
}
function Plist5(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductBuildVersion'];
	if (!plistKeyValue) {
		return false;
	}
	var buildNumbersArray = '18D21c,18D32a,18D38a,18D39a,18D42,18D43,18D100,18D101,18D102,18D103,18D104,18D105,18D106,18D107,18D108,18D109,18E174f,18E184e,18E194d,18E194e,18E205e,18E213,18E214,18E215,18E215a,18E216,18E217,18E218,18E219,18E220,18E220a,18E221a,18E223,18E224,18E226'.split(',');
	if (buildNumbersArray.indexOf(plistKeyValue) &lt; 0) {
		return false;
	}
	return true;
}
function Plist6(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductBuildVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '18E226') &gt;= 0) {
		return false;
	}
	return true;
}
function RecoveryHD7(prefix) {
	if( my.target.filesystem.safeToModifyVolume == 0 ) {
		return false;
	}
	if(!my.target.recoverySystemVersion) {
		return true;
	}
	var targetRecoveryVersion = my.target.recoverySystemVersion.ProductBuildVersion;
	if (system.compareVersions( targetRecoveryVersion, '18E226') &gt;= 0) {
		return false;
	}
	return true;
}
</script>
    <pkg-ref id="com.apple.pkg.update.os.10.14.4.18E226" installKBytes="6228866" version="1.0.0.0.1.1553145155"/>
    <pkg-ref id="com.apple.pkg.FirmwareUpdate" installKBytes="0" version="10.14.4.1"/>
    <pkg-ref id="com.apple.pkg.macOSBrain" installKBytes="166" version="10.14.4.1.1.1553145155"/>
    <pkg-ref id="com.apple.update.fullbundleupdate.18E226" installKBytes="203694" version="1.0.0.0.1.1553145155"/>
    <pkg-ref id="com.apple.pkg.EmbeddedOSFirmware" installKBytes="62082" version="10.14.4.1.1.1553145155"/>
    <pkg-ref id="com.apple.pkg.SecureBoot" installKBytes="442" version="10.14.4.1.1.1553145155"/>
    <pkg-ref id="com.apple.pkg.macOSUpd10.14.4.RecoveryHDUpdate.18E226" installKBytes="0" version="1.0.0.0"/>
</installer-gui-script>