<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <options should-authenticate-reboot="true" affects-system-files="true" allow-install-later="true" post-logout="true" customize="never"/>
    <title>SU_TITLE</title>
    <script/>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <bridge-version build-version="18.16.14556.0.0" build-group="0"/>
    <auxinfo>
        <dict>
            <key>macOSProductBuildVersion</key>
            <string>18G9028</string>
            <key>macOSProductVersion</key>
            <string>10.14.6</string>
            <key>macOSVariant</key>
            <string>Customer</string>
        </dict>
    </auxinfo>
    <system-image id="SecUpd2021-003Mojave.RecoveryHDUpdate">
        <pkg-ref id="com.apple.pkg.SecUpd2021-003Mojave.RecoveryHDUpdate.18G9028"/>
    </system-image>
    <tags>
        <tag>MacBuddyInstallableUpdate</tag>
        <tag>macOS</tag>
    </tags>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline>
        <line choice="SecUpd2021-003Mojave"/>
    </choices-outline>
    <choices-outline ui="firmware">
        <line choice="SecUpd2021-003Mojave_Firmware"/>
    </choices-outline>
    <choices-outline ui="SoftwareUpdate">
        <line choice="SecUpd2021-003Mojave"/>
    </choices-outline>
    <choice id="SecUpd2021-003Mojave_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="SecUpd2021-003Mojave" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="macOS Mojave Security Update 2021-003" start_selected="true" versStr="SU_VERS" description="SU_DESCRIPTION" title="SU_TITLE" visible="Plist6(my.target.mountpoint)" start_enabled="true">
        <pkg-ref id="com.apple.pkg.update.os.SecUpd2021-003Mojave.18G9028" auth="Root" packageIdentifier="com.apple.pkg.update.os.SecUpd2021-003Mojave.18G9028" onConclusion="RequireRestart">SecUpd2021-003Mojave.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.SecUpd2021-003Mojave.RecoveryHDUpdate.18G9028" auth="Root" packageIdentifier="com.apple.pkg.SecUpd2021-003Mojave.RecoveryHDUpdate.18G9028" active="RecoveryHD7(my.target.mountpoint)" installEnvironment="ClientOS">SecUpd2021-003Mojave.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.18G9028" auth="Root" packageIdentifier="com.apple.update.fullbundleupdate.18G9028">FullBundleUpdate.pkg</pkg-ref>
    </choice>
    <script>
function InstallationCheck(prefix) {
	var boardIds = ['Mac-9AE82516C7C6B903','Mac-031B6874CF7F642A','Mac-112818653D3AABFC','Mac-9394BDF4BF862EE7','Mac-AA95B1DDAB278B95','Mac-CAD6701F7CEA0921','Mac-50619A408DB004DA','Mac-7BA5B2D9E42DDD94','Mac-B809C3757DA9BB8D','Mac-AFD8A9D944EA4843','Mac-27ADBB7B4CEE8E61','Mac-F305150B0C7DEEEF','Mac-35C1E88140C3E6CF','Mac-827FAC58A8FDFA22','Mac-77EB7D7DAF985301','Mac-2E6FAB96566FE58C','Mac-827FB448E656EC26','Mac-66E35819EE2D0D05','Mac-031AEE4D24BFF0B1','Mac-00BE6ED71E35EB86','Mac-4B7AC7E43945597E','Mac-5A49A77366F81C72','Mac-63001698E7A34814','Mac-937CB26E2E02BB01','Mac-FFE5EF870D7BA81A','Mac-53FDB3D8DB8CA971','Mac-226CB3C6A851A671','Mac-C6F71043CEAA02A6','Mac-4B682C642B45593E','Mac-1E7E29AD0135F9BC','Mac-90BE64C3CB5A9AEB','Mac-7BA5B2DFE22DDD8C','Mac-66F35F19FE2A0D05','Mac-189A3D4F975D5FFC','Mac-B4831CEBD52A0C4C','Mac-FA842E06C61E91C5','Mac-FC02E91DDD3FA6A4','Mac-06F11FD93F0323C5','Mac-06F11F11946D27C5','Mac-6F01561E16C75D06','Mac-F60DEB81FF30ACF6','Mac-473D31EABEB93F9B','Mac-3CBD00234E554E41','Mac-BE0E8AC46FE800CC','Mac-F221BEC8','Mac-9F18E312C5C2BF0B','Mac-81E3E92DD6088272','Mac-65CE76090165799A','Mac-CF21D135A7D34AA6','Mac-F65AE981FFA204ED','Mac-112B0A653D3AAB9C','Mac-DB15BD556843C820','Mac-937A206F2EE63C01','Mac-77F17D7DA9285301','Mac-E43C1C25D4880AD6','Mac-BE088AF8C5EB4FA2','Mac-551B86E5744E2388','Mac-A5C67F76ED83108C','Mac-747B1AEFF11738BE','Mac-EE2EBD4B90B839A8','Mac-42FD25EABCABB274','Mac-7DF2A3B5E5D671ED','Mac-2BD1B31983FE1663','Mac-7DF21CB3ED6977E5','Mac-A369DDC4E67F1C45','Mac-35C5E08120C7EEAF','Mac-C3EC7CD22292981F',];
	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','Macmini5,2','Macmini5,1','MacBookPro5,1','MacBookPro1,1','MacBookPro5,3','MacBookPro5,2','iMac8,1','MacBookPro5,4','MacBookPro8,1','iMac5,1','iMac11,2','iMac7,1','MacBookAir4,1','MacBookPro3,1','Macmini5,3','MacBookPro1,2','Macmini4,1','iMac9,1','iMac6,1','iMac4,1','Macmini1,1','iMac4,2','MacBookPro2,2','MacBookPro2,1','iMac12,2','MacBook3,1','MacPro3,1','MacBook5,1','MacBook5,2','iMac11,1','iMac10,1','MacBookPro7,1','MacBook2,1','MacPro4,1','MacBookPro6,2','iMac12,1','MacBook1,1','MacBookPro5,5','MacBookPro6,1','Xserve2,1','MacBookAir3,1','MacBookAir3,2','MacBookAir1,1','Xserve3,1','MacBookAir2,1','MacBook7,1','Xserve1,1','Macmini2,1','iMac5,2','MacBookPro8,2','MacBookPro8,3','iMac11,3','MacBook6,1','Macmini3,1','MacBook4,1','MacBookAir4,2','MacPro1,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.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 = '18G84,18G87,18G95,18G103,18G1005,18G1007,18G1011,18G1012,18G2007,18G2012,18G2016,18G2019,18G2022,18G3005,18G3013,18G3019,18G3020,18G4004,18G4011,18G4017,18G4021,18G4025,18G4030,18G4032,18G5006,18G5015,18G5021,18G5027,18G5032,18G5033,18G6003,18G6006,18G6015,18G6018,18G6020,18G6031,18G6032,18G6042,18G7007,18G7013,18G7016,18G8005,18G8010,18G8012,18G8022,18G9000x,18G9000y,18G9001,18G9002,18G9003,18G9004,18G9005,18G9006,18G9007,18G9008,18G9009,18G9010,18G9011,18G9012,18G9013,18G9014,18G9015,18G9016,18G9017,18G9018,18G9019,18G9020,18G9021,18G9022,18G9023,18G9024,18G9025,18G9026,18G9027,18G9028'.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, '18G9028') &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, '18G9028') &gt;= 0) {
		return false;
	}
	return true;
}
</script>
    <localization>
        <strings language="pl">"SU_TITLE" = "Uaktualnienie zabezpieczeń macOS Mojave 2021-003";
"SU_VERS" = "10.14.6";
"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 zabezpieczeń 2021-003 poprawia bezpieczeństwo systemu macOS i jest zalecane dla wszystkich użytkowników.&lt;/a&gt;&lt;/p&gt;&lt;br&gt;
    &lt;p class="p1"&gt;Aby uzyskać więcej informacji na temat zawartości tego uaktualnienia związanej z zabezpieczeniami, zobacz: &lt;a href="https://support.apple.com/kb/HT201222"&gt;https://support.apple.com/kb/HT201222&lt;/a&gt;.&lt;/p&gt;
     &lt;/body&gt;
 &lt;/html&gt;
';
</strings>
    </localization>
    <pkg-ref id="com.apple.pkg.SecUpd2021-003Mojave.RecoveryHDUpdate.18G9028" installKBytes="0" version="1.0.0.0"/>
    <pkg-ref id="com.apple.pkg.FirmwareUpdate" installKBytes="0" version="10.14.6.1"/>
    <pkg-ref id="com.apple.pkg.macOSBrain" installKBytes="166" version="10.14.6.1.1.1618389801"/>
    <pkg-ref id="com.apple.pkg.update.os.SecUpd2021-003Mojave.18G9028" installKBytes="3580330" version="1.0.0.0.1.1618389801"/>
    <pkg-ref id="com.apple.pkg.EmbeddedOSFirmware" installKBytes="62194" version="10.14.6.1.1.1618389801"/>
    <pkg-ref id="com.apple.pkg.SecureBoot" installKBytes="566" version="10.14.6.1.1.1618389801"/>
    <pkg-ref id="com.apple.update.fullbundleupdate.18G9028" installKBytes="214298" version="1.0.0.0.1.1618389801"/>
</installer-gui-script>