<?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>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <options visibleOnlyForPredicate="false"/>
    <tags>
        <tag>com.apple.java.runtime</tag>
    </tags>
    <script>
function InstallationCheck(prefix) {
	if (system.compareVersions(system.version.ProductVersion, '10.7') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.7');
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function VolumeCheck(prefix) {
	if (system.env.OS_INSTALL == 1) return true;
	var hasOS = system.files.fileExistsAtPath(my.target.mountpoint + "/System/Library/CoreServices/SystemVersion.plist");
	if (!hasOS || system.compareVersions(my.target.systemVersion.ProductVersion, '10.7') &lt; 0) {
		my.result.message = system.localizedStringWithFormat('ERROR_0', '10.7');
		my.result.type = 'Fatal';
		return false;
	}
	my.result.message = system.localizedString('ERROR_2');
	if (!PlistCheck0(my.target.mountpoint) || !LogicalOr1(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function PlistCheck0(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_3');
	var plist = system.files.plistAtPath(prefix + '/System/Library/Frameworks/JavaVM.framework/Resources/Info.plist');
	if (!plist) {
		return true;
	}
	var plistKeyValue = plist['CFBundleVersion'];
	if (!plistKeyValue) {
		return true;
	}
	if (system.compareVersions(plistKeyValue, '14.9.0') > 0) {
		return false;
	}
	return true;
}
function LogicalOr1(prefix) {
	if (FileCheck2(prefix) || PlistCheck3(prefix)) {
		return true;
	}
	return false;
}
function FileCheck2(prefix) {
	if (system.files.fileExistsAtPath(prefix + '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Info.plist') == 0) {
		return true;
	}
	return false;
}
function PlistCheck3(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_3');
	var plist = system.files.plistAtPath(prefix + '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Info.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['CFBundleVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '14.9.0') > 0) {
		return false;
	}
	return true;
}
function LogicalOr4(prefix) {
	if (LogicalAnd5(prefix) || Script8(prefix)) {
		return true;
	}
	return false;
}
function LogicalAnd5(prefix) {
	if (PlistCheck6(prefix) &amp;&amp; PlistCheck7(prefix)) {
		return true;
	}
	return false;
}
function PlistCheck6(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Info.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['CFBundleVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '14.9.0') > 0) {
		return false;
	}
	return true;
}
function PlistCheck7(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/Frameworks/JavaVM.framework/Resources/Info.plist');
	if (!plist) {
		return true;
	}
	var plistKeyValue = plist['CFBundleVersion'];
	if (!plistKeyValue) {
		return true;
	}
	if (system.compareVersions(plistKeyValue, '14.9.0') >= 0) {
		return false;
	}
	return true;
}
function Script8(prefix) {
	if (!system.env.JAVA_INSTALL_ON_DEMAND) {
		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="JavaForOSX" start_selected="true" visible="LogicalOr4('/')">
        <pkg-ref id="JavaEssentials" auth="Root" packageIdentifier="com.apple.pkg.JavaEssentials">JavaEssentials.pkg</pkg-ref>
        <pkg-ref id="JavaForOSX" auth="Root" packageIdentifier="com.apple.pkg.JavaForMacOSX107">JavaForOSX.pkg</pkg-ref>
        <pkg-ref id="JavaSecurity" auth="Root" packageIdentifier="com.apple.pkg.JavaSecurity">JavaSecurity.pkg</pkg-ref>
        <pkg-ref id="JavaMDNS" auth="Root" packageIdentifier="com.apple.pkg.JavaMDNS">JavaMDNS.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Java dla OS X 2013-005";
"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-left: 0.0px; margin-top: 0.0px; }
  </style>
</head>
<body>
<p>Java dla OS X 2013-005 poprawia bezpieczeństwo, niezawodność i zgodność, uaktualniając środowisko Java SE 6 do wersji 1.6.0_65.</p>
<p>W systemach bez zainstalowanego programu Java dla OS X 2012-006 to uaktualnienie wyłączy wtyczkę apletu Java SE 6. Aby używać apletów na stronie www, kliknij w regionie brakującej wtyczki i pobierz najnowszą wersje wtyczki apletów Java z witryny firmy Oracle.</p>
<p>Przed zainstalowaniem tego uaktualnienia zamknij wszystkie programy Java.</p>
<p>Zobacz <a href = \'http://support.apple.com/kb/HT5945?viewlocale=pl_PL\'>http://support.apple.com/kb/HT5945?viewlocale=pl_PL</a>, aby uzyskać więcej informacji o tym uaktualnieniu.</p>
<p>Zobacz <a href = \'http://support.apple.com/kb/HT1222?viewlocale=pl_PL\'>http://support.apple.com/kb/HT1222?viewlocale=pl_PL</a>, aby uzyskać informacje o zabezpieczeniach zawartych w tym uaktualnieniu.</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='JavaEssentials' installKBytes='24064' version='1.0.0.0.1.1247562015'/>
	<pkg-ref id='JavaForOSX' installKBytes='50646' version='1.0.0.0.1.1247562015'/>
	<pkg-ref id='JavaMDNS' installKBytes='133' version='1.0.0.0.1.1247562015'/>
	<pkg-ref id='JavaSecurity' installKBytes='1054' version='1.0.0.0.1.1247562015'/>
</installer-gui-script>