mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-29 12:35:53 +01:00
Fix the build package (PKG) without using buildme
This commit is contained in:
parent
98c4841008
commit
1e970b0542
@ -222,6 +222,7 @@ Will replace your BOOTX64.efi, you can choose between several bootloader version
|
||||
The first time, you'll get the menu. Choose one bootloader.
|
||||
The next times, it'll immediately load the bootloader you chose before.
|
||||
When you need the menu back, just boot your computer with a key pressed.
|
||||
INSTALL ONLY FROM BUILDME !!!
|
||||
INSTALL ONLY IF YOU KNOW WHAT YOU ARE DOING !!!
|
||||
More infos https://github.com/jief666/BootloaderChooser. ";
|
||||
|
||||
|
@ -1418,6 +1418,7 @@ fi
|
||||
# build BootLoaderChooser
|
||||
if [[ -d "${SRCROOT}"/BootLoaderChooser && ${NOEXTRAS} != *"BootLoaderChooser"* ]]; then
|
||||
echo "===================== BootLoaderChooser ====================="
|
||||
BLC_Dir="${SRCROOT}/BootLoaderChooser"
|
||||
local BLC_Dir="${SRCROOT}"/BootLoaderChooser
|
||||
local BLC_Dest='/EFI/BOOT'
|
||||
|
||||
@ -1431,11 +1432,17 @@ if [[ -d "${SRCROOT}"/BootLoaderChooser && ${NOEXTRAS} != *"BootLoaderChooser"*
|
||||
--subst="INSTALLER_CHOICE=$packageRefId" \
|
||||
BootLoaderChooser
|
||||
buildpackage "$packageRefId" "${choiceId}" "${PKG_BUILD_DIR}/${choiceId}" "/Private/tmp/EFIROOTDIR"
|
||||
|
||||
if [ -d "$BLC_Dir" ]; then
|
||||
addChoice --start-visible="true" --start-selected="choicePreviouslySelected('$packageRefId')" \
|
||||
--pkg-refs="$packageRefId" "${choiceId}"
|
||||
echo " **** Option usable with buildme only ****"
|
||||
else
|
||||
addChoice --start-visible="true" --start-selected="false" \
|
||||
|
||||
addChoice --start-visible="false" --start-selected="false" \
|
||||
--pkg-refs="$packageRefId" "${choiceId}"
|
||||
fi
|
||||
|
||||
# End BootLoaderChooser
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user