<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options hostArchitectures="i386" customize="never"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	var models = ['iMac14,3',];
	var model = system.sysctl('hw.model');
	if (models.indexOf(model) == -1) {
		my.result.message = system.localizedString('ERROR_1');
		my.result.type = 'Fatal';
		return false;
	}
	if (system.compareVersions(system.version.ProductVersion, '10.9') > 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.9');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_1');
	if (!PlistCheck0("/")) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function PlistCheck0(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/Extensions/IOUSBFamily.kext/Contents/Info.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['CFBundleShortVersionString'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '635.4.0') > 0) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '630.4.5') &lt; 0) {
		return false;
	}
	return true;
}
function PlistCheck1(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/Extensions/IOUSBFamily.kext/Contents/Info.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['CFBundleShortVersionString'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '630.4.5') &lt; 0) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '635.4.0') >= 0) {
		return false;
	}
	return true;
}
</script>
    <platforms>
        <client arch="i386"/>
        <server arch="i386"/>
    </platforms>
    <choices-outline ui="SoftwareUpdate">
        <line choice="su"/>
    </choices-outline>
    <choices-outline>
        <line choice="su"/>
    </choices-outline>
    <choice id="su" title="SU_TITLE" versStr="SU_VERS" description="SU_DESCRIPTION" description-mime-type="text/html" secondaryDescription="SU_SERVERCOMMENT" suDisabledGroupID="iMacSupplementalUpdate" start_selected="true" visible="PlistCheck1('/')">
        <pkg-ref id="iMacSupplementalUpdate" auth="Root" packageIdentifier="com.apple.pkg.cpu.iMac2.9Ghzupdate1.0" onConclusion="RequireRestart">iMacSupplementalUpdate.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie uzupełniające systemu OS X 10.8.5 dla iMaca";
"SU_VERS" = "1.0";
"SU_SERVERCOMMENT" = "Dla komputerów klienckich i serwerów";
"SU_DESCRIPTION" = '<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta http-equiv="Content-Style-Type" content="text/css">
        <title></title>
        <style type="text/css">
            body { font: 11.0px Lucida Grande; }
            p { margin: 0; }
        </style>
    </head>
    <body>
        <p>Uaktualnienie uzupełniające systemu OS X 10.8.5 dla iMaca 1.0 jest zalecane dla wszystkich użytkowników iMaca (z końca 2013 roku) z kartą graficzną NVIDIA GeForce GT 750M i systemem OS X Mountain Lion w wersji 10.8.5. To uaktualnienie:</p>
	<ul>
		<li>rozwiązuje problem, który mógł powodować wysuwanie napędów zewnętrznych po przejściu komputera w stan uśpienia;</li>
		<li>usuwa problem, który mógł uniemożliwiać działanie niektórych adapterów USB Bluetooth.</li>
	</ul><br>
    </body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='iMacSupplementalUpdate' installKBytes='32483' version='1.0.0.0.1.1306847324'/>
</installer-gui-script>