<?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" post-logout="true" affects-system-files="true" allow-install-later="true"/>
    <title>SU_TITLE</title>
    <script/>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <bridge-version build-version="15.16.6805.0.0" build-group="0"/>
    <auxinfo>
        <dict>
            <key>macOSProductBuildVersion</key>
            <string>17G2307</string>
            <key>macOSProductVersion</key>
            <string>10.13.6</string>
            <key>macOSVariant</key>
            <string>Customer</string>
        </dict>
    </auxinfo>
    <system-image id="macOSUpd10.13.6Supplemental.RecoveryHDUpdate">
        <pkg-ref id="com.apple.pkg.macOSUpd10.13.6Supplemental.RecoveryHDUpdate.17G2307"/>
    </system-image>
    <tags>
        <tag>MacBuddyInstallableUpdate</tag>
        <tag>macOS</tag>
    </tags>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline>
        <line choice="macOSUpd10.13.6Supplemental"/>
    </choices-outline>
    <choices-outline ui="firmware">
        <line choice="macOSUpd10.13.6Supplemental_Firmware"/>
    </choices-outline>
    <choices-outline ui="SoftwareUpdate">
        <line choice="macOSUpd10.13.6Supplemental"/>
    </choices-outline>
    <choice id="macOSUpd10.13.6Supplemental_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.13.6Supplemental" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="macOS High Sierra 10.13.6 Supplemental Update 2 for MacBook Pro (2018)" start_selected="true" versStr="SU_VERS" description="SU_DESCRIPTION" title="SU_TITLE" visible="Plist9(my.target.mountpoint)" start_enabled="true">
        <pkg-ref id="com.apple.pkg.update.os.10.13.6Supplemental.17G2307" auth="Root" packageIdentifier="com.apple.pkg.update.os.10.13.6Supplemental.17G2307" onConclusion="RequireRestart">macOSUpd10.13.6Supplemental.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.macOSUpd10.13.6Supplemental.RecoveryHDUpdate.17G2307" auth="Root" packageIdentifier="com.apple.pkg.macOSUpd10.13.6Supplemental.RecoveryHDUpdate.17G2307" active="RecoveryHD10(my.target.mountpoint)" installEnvironment="ClientOS">macOSUpd10.13.6Supplemental.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.17G2307" auth="Root" packageIdentifier="com.apple.update.fullbundleupdate.17G2307">FullBundleUpdate.pkg</pkg-ref>
    </choice>
    <script>
function InstallationCheck(prefix) {
	var boardIds = ['Mac-827FB448E656EC26','Mac-937A206F2EE63C01',];
	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;
		}
	}
	var nonSupportedModels = ['MacBookPro4,1','MacPro2,1','MacBookPro5,1','MacBookPro1,1','MacBookPro5,3','MacBookPro5,2','iMac8,1','MacBookPro5,4','iMac5,1','iMac5,2','iMac6,1','MacBookPro3,1','MacBookPro1,2','iMac9,1','Macmini3,1','Macmini1,1','iMac4,2','MacBookPro2,2','MacBookPro2,1','MacBook3,1','MacBook5,1','MacBook5,2','MacBook2,1','iMac4,1','MacBook1,1','MacBookPro5,5','Xserve2,1','MacBookAir1,1','Xserve3,1','MacBookAir2,1','Xserve1,1','Macmini2,1','MacPro3,1','iMac7,1','MacBook4,1','MacPro1,1','MacPro4,1',];
	var currentModel = system.sysctl('hw.model');
	if (nonSupportedModels.indexOf(currentModel) &gt;= 0) {
		my.result.message = system.localizedString('ERROR_3491501876');
		my.result.type = 'Fatal';
		return false;
	}
	var boardId = system.ioregistry.fromPath('IOService:/')['board-id'];
	if (boardIds.indexOf(boardId) == -1) {
		my.result.message = system.localizedString('ERROR_3491501876');
		my.result.type = 'Fatal';
		return false;
	}
	if (system.compareVersions(system.version.ProductVersion, '10.13') &lt; 0 || system.compareVersions(system.version.ProductVersion, '10.14') &gt;= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_7E7AEE96CA', '10.13');
		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.13') &lt; 0 || system.compareVersions(myTargetSystemVersion.ProductVersion, '10.14') &gt;= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_7E7AEE96CA', '10.13');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_ABA5BBB51F');
	if (!Not0(my.target.mountpoint) || !Not3(my.target.mountpoint) || !AppleInternalCheck7(my.target.mountpoint) || !Plist8(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function Not0(prefix) {
	if (!(Bridge1(prefix) &amp;&amp; FileSystem2(prefix))) {
		return true;
	}
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_74CFD58E51');
	return false;
}
function Bridge1(prefix) {
	if (system.hasOwnProperty('bridge') &amp;&amp; system.bridge.hasOwnProperty('deviceIdentity') &amp;&amp; system.bridge.deviceIdentity.chipID != 0 &amp;&amp; system.bridge.deviceIdentity.boardID != 0) {
		return true;
	}
	return false;
}
function FileSystem2(prefix) {
	if (my.target.filesystem &amp;&amp; my.target.filesystem.type == 'hfs') {
		return true;
	}
	return false;
}
function Not3(prefix) {
	if (!(Or4(prefix))) {
		return true;
	}
	return false;
}
function Or4(prefix) {
	if (FileSystem5(prefix) || Script6(prefix)) {
		return true;
	}
	return false;
}
function FileSystem5(prefix) {
	if (my.target.filesystem &amp;&amp; my.target.filesystem.safeToModifyVolume == '0') {
		return true;
	}
	return false;
}
function Script6(prefix) {
	if (my.target.isDisallowedForCoreStorageOperations) {
		return true;
	} else {
		return false;
	}
}
function AppleInternalCheck7(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 Plist8(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 = '17G2112,17G2200,17G2201,17G2202,17G2203,17G2204,17G2205,17G2206,17G2207,17G2208,17G2209,17G2300,17G2301,17G2302,17G2303,17G2304,17G2305,17G2306,17G2307'.split(',');
	if (buildNumbersArray.indexOf(plistKeyValue) &lt; 0) {
		return false;
	}
	return true;
}
function Plist9(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, '17G2307') &gt;= 0) {
		return false;
	}
	return true;
}
function RecoveryHD10(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, '17G2307') &gt;= 0) {
		return false;
	}
	return true;
}
</script>
    <localization>
        <strings language="pl">"SU_TITLE" = "Uaktualnienie uzupełniające 2 macOS High Sierra 10.13.6 dla MacBooka Pro (2018)";
"SU_VERS" = " ";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich i serwerów";
"SU_DESCRIPTION" = '&lt;!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"&gt;
&lt;html&gt;
    &lt;head&gt;
         &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
         &lt;meta http-equiv="Content-Style-Type" content="text/css"&gt;
         &lt;title&gt;&lt;/title&gt;
         &lt;style type="text/css"&gt;
             body {font: 11.0px -apple-system;}
             p {margin: 0.0px 0.0px 0.0px 0.0px;}
         &lt;/style&gt;
     &lt;/head&gt;
     &lt;body&gt;
    &lt;p class="p1"&gt;Uaktualnienie uzupełniające 2 macOS High Sierra 10.13.6 przeznaczone dla MacBooków Pro z paskiem Touch Bar (z 2018 roku) poprawia stabilność i niezawodność oraz wydajność wykonywania określonych zadań. Jest ono zalecane dla wszystkich użytkowników.&lt;/a&gt;&lt;/p&gt;
     &lt;/body&gt;
 &lt;/html&gt;

';
</strings>
    </localization>
    <pkg-ref id="com.apple.update.fullbundleupdate.17G2307" installKBytes="240554" version="1.0.0.0.1.1535021691"/>
    <pkg-ref id="com.apple.pkg.update.os.10.13.6Supplemental.17G2307" installKBytes="1825566" version="1.0.0.0.1.1535021691"/>
    <pkg-ref id="com.apple.pkg.FirmwareUpdate" installKBytes="0" version="10.13.6.1"/>
    <pkg-ref id="com.apple.pkg.macOSBrain" installKBytes="170" version="10.13.6.1.1.1535021691"/>
    <pkg-ref id="com.apple.pkg.macOSUpd10.13.6Supplemental.RecoveryHDUpdate.17G2307" installKBytes="0" version="1.0.0.0"/>
    <pkg-ref id="com.apple.pkg.EmbeddedOSFirmware" installKBytes="62086" version="10.13.6.1.1.1535021691"/>
    <pkg-ref id="com.apple.pkg.SecureBoot" installKBytes="214" version="10.13.6.1.1.1535021691"/>
</installer-gui-script>