<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>LinkSharedSupport</key>
	<dict>
		<key>PreReplacementCaptures</key>
		<array>
			<string>^SHARED_SUPPORT_PATH\=.*$</string>
		</array>
		<key>ReplacementContent</key>
		<string>#!/bin/bash

SHARED_SUPPORT_PATH=&quot;${3}Applications/%%%IA_NAME%%%/Contents/SharedSupport&quot;
/bin/mkdir -m 755 -p &quot;${SHARED_SUPPORT_PATH}&quot;

echo &quot;Copying ${PACKAGE_PATH} into ${SHARED_SUPPORT_PATH}&quot;
/bin/cp -fc &quot;${PACKAGE_PATH}&quot; &quot;${SHARED_SUPPORT_PATH}/SharedSupport.dmg&quot; ||
/bin/cp -f &quot;${PACKAGE_PATH}&quot; &quot;${SHARED_SUPPORT_PATH}/SharedSupport.dmg&quot;</string>
		<key>PostReplacementChanges</key>
		<array>
			<dict>
				<key>RegexMatch</key>
				<string>^SHARED_SUPPORT_PATH\=.*$</string>
				<key>PreMutationCaptureIndex</key>
				<integer>0</integer>
			</dict>
		</array>
	</dict>
	<key>LinkPackage</key>
	<dict>
		<key>PreReplacementCaptures</key>
		<array>
			<string>^SHARED_SUPPORT_PATH\=.*$</string>
		</array>
		<key>ReplacementContent</key>
		<string>#!/bin/bash

SHARED_SUPPORT_PATH=&quot;${3}Applications/%%%IA_NAME%%%/Contents/SharedSupport&quot;
/bin/mkdir -m 755 -p &quot;${SHARED_SUPPORT_PATH}&quot;
/bin/chmod 0755 &quot;${SHARED_SUPPORT_PATH}&quot;

echo &quot;Copying ${PACKAGE_PATH} into ${SHARED_SUPPORT_PATH}&quot;
/bin/cp -fc &quot;${PACKAGE_PATH}&quot; &quot;${SHARED_SUPPORT_PATH}/InstallESD.dmg&quot; ||
/bin/cp -f &quot;${PACKAGE_PATH}&quot; &quot;${SHARED_SUPPORT_PATH}/InstallESD.dmg&quot;</string>
		<key>PostReplacementChanges</key>
		<array>
			<dict>
				<key>RegexMatch</key>
				<string>^SHARED_SUPPORT_PATH\=.*$</string>
				<key>PreMutationCaptureIndex</key>
				<integer>0</integer>
			</dict>
		</array>
	</dict>
	<key>LinkPackage2</key>
	<dict>
		<key>PreReplacementCaptures</key>
		<array>
			<string>^SHARED_SUPPORT_PATH\=.*$</string>
		</array>
		<key>ReplacementContent</key>
		<string>#!/bin/bash

#
# Note that this designed to be a component script for &quot;Install Mac OS X.app&quot;,
# so $2 contains the actual (possibly relocated) install path for IA. Actually
# overwriting another copy of IA doesn&apos;t seem like a Real User Scenario (much
# less having that existing copy relocated), but we should still aim to do the
# right thing.
#
IA_PATH=&quot;$2&quot;

#
# Work around &lt;rdar://problem/8966177&gt;, which causes the prefix path (install-location)
# to be prepended twice to $2. (An alternate workaround is to put &quot;./Applications&quot;
# into the payload instead of into the install-location. This is still allowed by iTS,
# and avoids having the double appending of the prefix path invalidate anything.)
#
if [ ! -e &quot;$IA_PATH&quot; ]; then
    IA_PATH=&quot;${IA_PATH/\/Applications/}&quot;
    if [ ! -e &quot;$IA_PATH&quot; ]; then
        echo &quot;Cannot find app from \&quot;$2\&quot;&quot;
        exit 1
    fi
fi

SHARED_SUPPORT_PATH=&quot;$IA_PATH/Contents/SharedSupport&quot;
/bin/mkdir -m 755 -p &quot;${SHARED_SUPPORT_PATH}&quot;
/bin/chmod 0755 &quot;${SHARED_SUPPORT_PATH}&quot;

echo &quot;Copying ${PACKAGE_PATH} into ${SHARED_SUPPORT_PATH}&quot;
/bin/cp -fc &quot;${PACKAGE_PATH}&quot; &quot;${SHARED_SUPPORT_PATH}/InstallESD.dmg&quot; ||
/bin/cp -f &quot;${PACKAGE_PATH}&quot; &quot;${SHARED_SUPPORT_PATH}/InstallESD.dmg&quot;</string>
		<key>PostReplacementChanges</key>
		<array>
			<dict>
				<key>RegexMatch</key>
				<string>^SHARED_SUPPORT_PATH\=.*$</string>
				<key>PreMutationCaptureIndex</key>
				<integer>0</integer>
			</dict>
		</array>
	</dict>
	<key>LIPOARM64e</key>
	<dict>
		<key>ReplacementContent</key>
		<string>#!/bin/sh

echo &quot;lipoarm64e was mutated by PackageKit and is no longer implemented.&quot;</string>
	</dict>
	<key>DeleteScript</key>
	<dict>
		<key>Delete</key>
		<true/>
	</dict>
</dict>
</plist>
