mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2024-11-26 12:05:36 +01:00
change defaults in Clover installer
Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
parent
8fc250a95c
commit
46a3f3c576
@ -1118,12 +1118,12 @@ if [[ -d "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/File
|
||||
|
||||
if [[ $driver == VBoxHfs* ]]; then
|
||||
addChoice --group="FileSystem64UEFI" --title="$driverName" \
|
||||
--start-selected="choicePreviouslySelected('$packageRefId')" \
|
||||
--start-selected="cloverPackageFirstRun() || choicePreviouslySelected('$packageRefId')" \
|
||||
--selected="!choices['HFSPlus.UEFI'].selected" \
|
||||
--pkg-refs="$packageRefId" "${driverName}"
|
||||
else
|
||||
addChoice --group="FileSystem64UEFI" --title="$driverName" \
|
||||
--start-selected="choicePreviouslySelected('$packageRefId')" \
|
||||
--start-selected="cloverPackageFirstRun() || choicePreviouslySelected('$packageRefId')" \
|
||||
--selected="!choices['VBoxHfs.UEFI'].selected" \
|
||||
--pkg-refs="$packageRefId" "${driverName}"
|
||||
fi
|
||||
@ -1131,6 +1131,10 @@ if [[ -d "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/File
|
||||
addChoice --group="FileSystem64UEFI" --title="$driverName" \
|
||||
--start-selected="cloverPackageFirstRun() || choicePreviouslySelected('$packageRefId')" \
|
||||
--pkg-refs="$packageRefId" "${driverName}"
|
||||
elif [[ $driver == Fat* ]]; then
|
||||
addChoice --group="FileSystem64UEFI" --title="$driverName" \
|
||||
--start-selected="cloverPackageFirstRun() || choicePreviouslySelected('$packageRefId')" \
|
||||
--pkg-refs="$packageRefId" "${driverName}"
|
||||
else
|
||||
addChoice --group="FileSystem64UEFI" --title="$driverName" \
|
||||
--start-selected="choicePreviouslySelected('$packageRefId')" \
|
||||
@ -1358,7 +1362,7 @@ if [[ ${NOEXTRAS} != *"Clover Themes"* ]]; then
|
||||
buildpackage "$packageRefId" "${themeName}" "${PKG_BUILD_DIR}/${themeName}" "${themeDestDir}"
|
||||
|
||||
# local selectTheme="checkFileExists('${themeDestDir}/$themeName/icons/func_clover.png')"
|
||||
local selectTheme="choicePreviouslySelected('$packageRefId')"
|
||||
local selectTheme="cloverPackageFirstRun() || choicePreviouslySelected('$packageRefId')"
|
||||
# Select the default theme
|
||||
[[ "$themeName" == "$defaultTheme" ]] && selectTheme='true'
|
||||
addChoice --group="Themes" --start-selected="$selectTheme" --pkg-refs="$packageRefId" "${themeName}"
|
||||
|
@ -799,7 +799,7 @@ MainPostBuildScript() {
|
||||
|
||||
# Mandatory drivers
|
||||
echo "Copy Mandatory drivers:"
|
||||
binArray=( FSInject XhciDxe SMCHelper AudioDxe )
|
||||
binArray=( XhciDxe SMCHelper EnglishDxe )
|
||||
for efi in "${binArray[@]}"
|
||||
do
|
||||
copyBin "$BUILD_DIR_ARCH"/$efi.efi "$CLOVER_PKG_DIR"/EFI/CLOVER/drivers/$DRIVERS_LEGACY/$efi.efi
|
||||
@ -811,7 +811,7 @@ MainPostBuildScript() {
|
||||
copyBin "$BUILD_DIR_ARCH"/$efi.efi "$CLOVER_PKG_DIR"/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_LEGACY/FileVault2/$efi.efi
|
||||
done
|
||||
|
||||
binArray=( ApfsDriverLoader )
|
||||
binArray=( ApfsDriverLoader FSInject )
|
||||
for efi in "${binArray[@]}"
|
||||
do
|
||||
copyBin "$BUILD_DIR_ARCH"/$efi.efi "$CLOVER_PKG_DIR"/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_LEGACY/FileSystem/$efi.efi
|
||||
@ -823,7 +823,7 @@ MainPostBuildScript() {
|
||||
# fi
|
||||
|
||||
|
||||
binArray=( FSInject SMCHelper AudioDxe )
|
||||
binArray=( SMCHelper EnglishDxe )
|
||||
for efi in "${binArray[@]}"
|
||||
do
|
||||
copyBin "$BUILD_DIR_ARCH"/$efi.efi "$CLOVER_PKG_DIR"/EFI/CLOVER/drivers/$DRIVERS_UEFI/$efi.efi
|
||||
@ -844,7 +844,7 @@ MainPostBuildScript() {
|
||||
fi
|
||||
|
||||
# drivers64UEFI
|
||||
binArray=( CsmVideoDxe EnglishDxe EmuVariableUefi NvmExpressDxe OsxFatBinaryDrv PartitionDxe )
|
||||
binArray=( CsmVideoDxe EmuVariableUefi NvmExpressDxe OsxFatBinaryDrv PartitionDxe AudioDxe )
|
||||
|
||||
for efi in "${binArray[@]}"
|
||||
do
|
||||
|
Loading…
Reference in New Issue
Block a user