Add files via upload

This commit is contained in:
LAbyOne 2021-05-09 16:10:47 +02:00 committed by GitHub
parent 74692cba9f
commit e075824eb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1386,36 +1386,60 @@ if [[ ${NOEXTRAS} != *"Clover Themes"* ]]; then
done done
fi fi
# build CloverThemeManager package ## build CloverThemeManager package
#if [[ -d "${SRCROOT}"/CloverThemeManager && ${NOEXTRAS} != *"Clover Themes"* ]]; then # if [[ -d "${SRCROOT}"/CloverThemeManager && ${NOEXTRAS} != *"Clover Themes"* ]]; then
# local CTM_Dir="${SRCROOT}"/CloverThemeManager # local CTM_Dir="${SRCROOT}"/CloverThemeManager
# local CTM_Dest='/Applications' # local CTM_Dest='/Applications'
#
# packagesidentity="${clover_package_identity}".CTM.themes # packagesidentity="${clover_package_identity}".CTM.themes
# choiceId="CloverThemeManager" # choiceId="CloverThemeManager"
# packageRefId=$(getPackageRefId "${packagesidentity}" "${choiceId}") # packageRefId=$(getPackageRefId "${packagesidentity}" "${choiceId}")
#
# ditto --noextattr --noqtn "$CTM_Dir" \ # ditto --noextattr --noqtn "$CTM_Dir" \
# "${PKG_BUILD_DIR}/${choiceId}/Root/${CTM_Dest}"/ # "${PKG_BUILD_DIR}/${choiceId}/Root/${CTM_Dest}"/
# addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \ # addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
# --subst="INSTALLER_CHOICE=$packageRefId" \ # --subst="INSTALLER_CHOICE=$packageRefId" \
# CloverThemeManager # CloverThemeManager
# buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/" # buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/"
# CloverThemeManager.app can update it-self, # # CloverThemeManager.app can update it-self,
# so there's no need to record the choice as 'previously selected'. # # so there's no need to record the choice as 'previously selected'.
# addChoice --group="Themes" --start-selected="false" \ # addChoice --group="Themes" --start-selected="false" \
# --start-enabled="checkFileExists('/Users')" \ # --start-enabled="checkFileExists('/Users')" \
# --start-visible="checkFileExists('/Users')" \ # --start-visible="checkFileExists('/Users')" \
# --pkg-refs="$packageRefId" "${choiceId}" # --pkg-refs="$packageRefId" "${choiceId}"
# end CloverThemeManager package # # end CloverThemeManager package
# End build theme packages ## End build theme packages
#fi # fi
# build BootLoaderChooser
if [[ -d "${SRCROOT}"/BootLoaderChooser && ${NOEXTRAS} != *"BootLoaderChooser"* ]]; then
echo "===================== BootLoaderChooser ====================="
local BLC_Dir="${SRCROOT}"/BootLoaderChooser
local BLC_Dest='/EFI/BOOT'
packagesidentity="$clover_package_identity"
choiceId="BootLoaderChooser"
packageRefId=$(getPackageRefId "${packagesidentity}" "${choiceId}")
ditto --noextattr --noqtn "$BLC_Dir" \
"${PKG_BUILD_DIR}/${choiceId}/Root/${BLC_Dest}"/
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${choiceId}" \
--subst="INSTALLER_CHOICE=$packageRefId" \
BootLoaderChooser
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Private/tmp/EFIROOTDIR"
addChoice --start-visible="true" --start-selected="choicePreviouslySelected('$packageRefId')" \
--pkg-refs="$packageRefId" "${choiceId}"
else
addChoice --start-visible="true" --start-selected="false" \
--pkg-refs="$packageRefId" "${choiceId}"
# End BootLoaderChooser
fi
# build CloverConfigPlistValidator package # build CloverConfigPlistValidator package
if [[ -d "${SRCROOT}"/CloverConfigPlistValidator && ${NOEXTRAS} != *"CloverConfigPlistValidator"* ]]; then if [[ -d "${SRCROOT}"/CloverConfigPlistValidator && ${NOEXTRAS} != *"CloverConfigPlistValidator"* ]]; then
echo "=============== CloverConfigPlistValidator ===============" echo "=============== CloverConfigPlistValidator ==============="
local CCPV_Dir="${SRCROOT}"/CloverConfigPlistValidator local CCPV_Dir="${SRCROOT}"/CloverConfigPlistValidator
local CCPV_Dest='/Applications/CloverUtils/CloverConfigPlistValidator' local CCPV_Dest='/usr/local/bin'
packagesidentity="${clover_package_identity}" packagesidentity="${clover_package_identity}"
choiceId="CloverConfigPlistValidator" choiceId="CloverConfigPlistValidator"