<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<installer-gui-script minSpecVersion="1">
    <options affects-system-files="true" should-launch-first-login-optimization="true" customize="never" allow-install-later="true" post-logout="true" should-authenticate-reboot="true"/>
    <title>SU_TITLE</title>
    <script/>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <bridge-version build-version="17.16.15580.0.0" build-group="0"/>
    <auxinfo>
        <dict>
            <key>InternalUseOnlyBuild</key>
            <string/>
            <key>macOSProductBuildVersion</key>
            <string>19F2200</string>
            <key>macOSProductVersion</key>
            <string>10.15.5</string>
            <key>macOSVariant</key>
            <string>Customer</string>
        </dict>
    </auxinfo>
    <system-image id="macOSUpd10.15.5.RecoveryHDUpdate">
        <pkg-ref id="com.apple.pkg.macOSUpd10.15.5.RecoveryHDUpdate.19F2200"/>
    </system-image>
    <tags>
        <tag>MacBuddyInstallableUpdate</tag>
        <tag>macOS</tag>
    </tags>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline ui="firmware">
        <line choice="macOSUpd10.15.5_Firmware"/>
    </choices-outline>
    <choices-outline>
        <line choice="macOSUpd10.15.5"/>
    </choices-outline>
    <choices-outline ui="SoftwareUpdate">
        <line choice="macOSUpd10.15.5"/>
    </choices-outline>
    <choice id="macOSUpd10.15.5" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="macOS Catalina 10.15.5 Supplemental Update" 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.10.15.5.19F2200" auth="Root" packageIdentifier="com.apple.pkg.update.os.10.15.5.19F2200" onConclusion="RequireRestart">macOSUpd10.15.5.pkg</pkg-ref>
        <pkg-ref id="com.apple.pkg.macOSUpd10.15.5.RecoveryHDUpdate.19F2200" auth="Root" packageIdentifier="com.apple.pkg.macOSUpd10.15.5.RecoveryHDUpdate.19F2200" active="RecoveryHD7(my.target.mountpoint)" installEnvironment="ClientOS">macOSUpd10.15.5.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.19F2200" auth="Root" packageIdentifier="com.apple.update.fullbundleupdate.19F2200">FullBundleUpdate.pkg</pkg-ref>
    </choice>
    <choice id="macOSUpd10.15.5_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>
    <script>
function InstallationCheck(prefix) {
	var boardIds = ['Mac-A61BADE1FDAD7B05',];
	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','MacPro5,1','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.15') &lt; 0 || system.compareVersions(system.version.ProductVersion, '10.16') &gt;= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_7E7AEE96CA', '10.15');
		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.15') &lt; 0 || system.compareVersions(myTargetSystemVersion.ProductVersion, '10.16') &gt;= 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_7E7AEE96CA', '10.15');
		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_D30C1E7565');
	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 = '19F2000,19F2001,19F2001x,19F2002,19F2003,19F2004,19F2005,19F2006,19F2007,19F2008,19F2009,19F2010,19F2011,19F2011x,19F2012,19F2013,19F2014,19F2015,19F2016,19F2017,19F2018,19F2019,19F2020,19F2021,19F2021x,19F2022,19F2023,19F2024,19F2025,19F2026,19F2027,19F2028,19F2029,19F2030,19F2031,19F2032,19F2033,19F2034,19F2035,19F2036,19F2037,19F2038,19F2039,19F2040,19F2041,19F2042,19F2043,19F2044,19F2045,19F2046,19F2047,19F2048,19F2049,19F2050,19F2051,19F2052,19F2053b,19F2054,19F2055,19F2056,19F2057,19F2058,19F2059,19F2080,19F2081,19F2082,19F2084,19F2085,19F2086,19F2087,19F2090,19F2091,19F2092,19F2093,19F2094,19F2095,19F2096,19F2097,19F2199,19F2200'.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, '19F2200') &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, '19F2200') &gt;= 0) {
		return false;
	}
	return true;
}
</script>
    <localization>
        <strings language="pl">"SU_TITLE" = "Uaktualnienie uzupełniające macOS Catalina 10.15.5";
"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: 13px -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 macOS Catalina 10.15.5 zawiera ważne poprawki zabezpieczeń i jest zalecane dla wszystkich użytkowników.&lt;/p&gt;
		&lt;br&gt;
        &lt;p class="p1"&gt;Dostępność niektórych funkcji może zależeć od regionu lub urządzenia Apple. Informacje na temat zawartości tego uaktualnienia związanej z zabezpieczeniami można znaleźć pod adresem: &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.FirmwareUpdate" installKBytes="0" version="10.15.5.1"/>
    <pkg-ref id="com.apple.pkg.macOSBrain" installKBytes="190" version="10.15.5.1.1.1591330708"/>
    <pkg-ref id="com.apple.update.fullbundleupdate.19F2200" installKBytes="167050" version="1.0.0.0.1.1591330708"/>
    <pkg-ref id="com.apple.pkg.update.os.10.15.5.19F2200" installKBytes="7808926" version="1.0.0.0.1.1591330708"/>
    <pkg-ref id="com.apple.pkg.macOSUpd10.15.5.RecoveryHDUpdate.19F2200" installKBytes="0" version="1.0.0.0"/>
    <pkg-ref id="com.apple.pkg.EmbeddedOSFirmware" installKBytes="62194" version="10.15.5.1.1.1591330708"/>
    <pkg-ref id="com.apple.pkg.SecureBoot" installKBytes="746" version="10.15.5.1.1.1591330708"/>
</installer-gui-script>