<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<installer-gui-script minSpecVersion="1">
    <options customize="never" rootVolumeOnly="true"/>
    <title>SU_TITLE</title>
    <script>
</script>
    <volume-check script="VolumeCheck()"/>
    <installation-check script="InstallationCheck()"/>
    <script>
function InstallationCheck(prefix) {
	my.result.message = system.localizedString('ERROR_0');
	if (!LogicalOr0("/") || !LogicalOr4("/") || !LogicalOr7("/")) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function LogicalOr0(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_1');
	if (BundleCheck1(prefix) || Not2(prefix)) {
		return true;
	}
	return false;
}
function BundleCheck1(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/System/Library/CoreServices/RawCameraSupport.bundle');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '5070') > 0) {
		return false;
	}
	return true;
}
function Not2(prefix) {
	if (!(BundleCheck3(prefix))) {
		return true;
	}
	return false;
}
function BundleCheck3(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/System/Library/CoreServices/RawCameraSupport.bundle');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	return true;
}
function LogicalOr4(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_2');
	if (PlistCheck5(prefix) || PlistCheck6(prefix)) {
		return true;
	}
	return false;
}
function PlistCheck5(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.9') &lt; 0) {
		return false;
	}
	return true;
}
function PlistCheck6(prefix) {
	var plist = system.files.plistAtPath(prefix + '/System/Library/CoreServices/SystemVersion.plist');
	if (!plist) {
		return false;
	}
	var plistKeyValue = plist['ProductVersion'];
	if (!plistKeyValue) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.9') > 0) {
		return false;
	}
	if (system.compareVersions(plistKeyValue, '10.8.5') &lt; 0) {
		return false;
	}
	return true;
}
function LogicalOr7(prefix) {
	if (typeof(my.result) != 'undefined') my.result.message = system.localizedString('ERROR_3');
	if (BundleCheck8(prefix) || BundleCheck9(prefix)) {
		return true;
	}
	return false;
}
function BundleCheck8(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Applications/iPhoto.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '9.4.3') &lt; 0) {
		return false;
	}
	return true;
}
function BundleCheck9(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/Applications/Aperture.app');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '3.4.5') &lt; 0) {
		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");
	my.result.message = system.localizedString('ERROR_4');
	if (!LogicalOr0(my.target.mountpoint) || !LogicalOr4(my.target.mountpoint) || !LogicalOr7(my.target.mountpoint)) {
		my.result.type = 'Fatal';
		return false;
	}
	return true;
}
function LogicalOr10(prefix) {
	if (BundleCheck11(prefix) || Not2(prefix)) {
		return true;
	}
	return false;
}
function BundleCheck11(prefix) {
	var bundle = system.files.bundleAtPath(prefix + '/System/Library/CoreServices/RawCameraSupport.bundle');
	if (!bundle) {
		return false;
	}
	var bundleKeyValue = bundle['CFBundleShortVersionString'];
	if (!bundleKeyValue) {
		return false;
	}
	if (system.compareVersions(bundleKeyValue, '5070') >= 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="RAWCameraUpdate5.07" start_selected="true" visible="LogicalOr10('/') &amp;&amp; LogicalOr4('/')">
        <pkg-ref id="RAWCameraUpdate5" auth="Root" packageIdentifier="com.apple.pkg.RAWCameraUpdate5">RAWCameraUpdate5.pkg</pkg-ref>
    </choice>
    <localization>
        <strings language="pl"><![CDATA["SU_TITLE" = "Uaktualnienie zgodności plików RAW aparatów cyfrowych";
"SU_VERS" = "5.07";
"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>
  <meta name="Generator" content="Cocoa HTML Writer">
  <meta name="CocoaVersion" content="1265.19">
  <style type="text/css">
    p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'}
    p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px \'Lucida Grande\'; min-height: 13.0px}
    span.s1 {text-decoration: underline ; color: #4787ff}
    span.Apple-tab-span {white-space:pre}
  </style>
</head>
<body>
<p class="p1">Uaktualnienie zgodności plików RAW aparatów cyfrowych 5.07</p>
<p class="p2"><br></p>
<p class="p1">To uaktualnienie rozszerza zgodność plików RAW z programami Aperture 3 i iPhoto ’11 na następujące aparaty:</p>
<p class="p2"><br></p>
<p class="p1"><span class="Apple-converted-space">     <span class="Apple-tab-span">  </span></span>• Nikon D810</p>
<p class="p1"><span class="Apple-converted-space">     <span class="Apple-tab-span">  </span></span>• Panasonic LUMIX DMC-FZ1000</p>
<p class="p2"><br></p>
<p class="p1">Więcej informacji na temat obsługiwanych formatów plików RAW można znaleźć pod adresem: <a href="http://support.apple.com/kb/HT5955?viewlocale=pl_PL"><span class="s1">http://support.apple.com/kb/HT5955?viewlocale=pl_PL</span></a>.</p>
</body>
</html>
';
]]></strings>
    </localization>

	<pkg-ref id='RAWCameraUpdate5' installKBytes='9639' version='5070.1.1409953809'/>
</installer-gui-script>