Exclude CCPV from Package

This commit is contained in:
chris1111 2023-06-28 19:39:27 -04:00 committed by GitHub
parent e85108dca7
commit 43e72fd14c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1437,27 +1437,6 @@ if [[ -d "${SRCROOT}"/BootLoaderChooser && ${NOEXTRAS} != *"BootLoaderChooser"*
# End BootLoaderChooser
fi
# build CloverConfigPlistValidator package
if [[ -d "${SRCROOT}"/CloverConfigPlistValidator && ${NOEXTRAS} != *"CloverConfigPlistValidator"* ]]; then
echo "=============== CloverConfigPlistValidator ==============="
local CCPV_Dir="${SRCROOT}"/CloverConfigPlistValidator
local CCPV_Dest='/usr/local/bin'
packagesidentity="${clover_package_identity}"
choiceId="CloverConfigPlistValidator"
packageRefId=$(getPackageRefId "${packagesidentity}" "${choiceId}")
ditto --noextattr --noqtn "$CCPV_Dir" \
"${PKG_BUILD_DIR}/${choiceId}/Root/${CCPV_Dest}"/
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="INSTALLER_CHOICE=$packageRefId" \
CloverConfigPlistValidator
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/"
addChoice --start-visible="true" --start-selected="choicePreviouslySelected('$packageRefId')" \
--pkg-refs="$packageRefId" "${choiceId}"
# End build CloverConfigPlistValidator packages
fi
# local cloverUpdaterDir="${SRCROOT}"/CloverUpdater
# local cloverPrefpaneDir="${SRCROOT}"/CloverPrefpane
# if [[ -x "$cloverPrefpaneDir"/build/Clover.prefPane/Contents/MacOS/Clover && ${NOEXTRAS} != *"Clover Prefpane"* ]]; then