Skip to content

Commit

Permalink
Exclude CCPV from Package
Browse files Browse the repository at this point in the history
  • Loading branch information
chris1111 committed Jun 28, 2023
1 parent e85108d commit 43e72fd
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions CloverPackage/package/buildpkg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 43e72fd

Please sign in to comment.