mirror of
https://github.com/CloverHackyColor/CloverBootloader.git
synced 2025-02-20 01:41:54 +01:00
Following commit cd2318129
(OcQuirks into config.plist)
This commit is contained in:
parent
60901993b4
commit
fe4e308c46
@ -420,18 +420,6 @@ final class Installer: NSObject {
|
|||||||
log: true) {
|
log: true) {
|
||||||
exit("Error: cannot copy '\(dpath)' to destination.")
|
exit("Error: cannot copy '\(dpath)' to destination.")
|
||||||
}
|
}
|
||||||
if dpath.lastPath == "OcQuirks.efi" {
|
|
||||||
let quirkPlistSrc = dpath.deletingLastPath.addPath("OcQuirks.plist")
|
|
||||||
let quirkPlistDest = UEFIdest.addPath("OcQuirks.plist")
|
|
||||||
if !fm.fileExists(atPath: quirkPlistDest) && fm.fileExists(atPath: quirkPlistSrc) {
|
|
||||||
if !copyReplace(src: quirkPlistSrc,
|
|
||||||
dst: quirkPlistDest,
|
|
||||||
attr: attributes,
|
|
||||||
log: true) {
|
|
||||||
exit("Error: cannot copy '\(quirkPlistSrc)' to destination.")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,15 +19,6 @@ driver_dir="@DRIVER_DIR@"
|
|||||||
driver_name="@DRIVER_NAME@"
|
driver_name="@DRIVER_NAME@"
|
||||||
|
|
||||||
if [[ -d "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir" ]]; then
|
if [[ -d "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir" ]]; then
|
||||||
if [[ "$driver" == OcQuirks.efi ]]; then
|
|
||||||
# copy OcQuirks.plist if doesn't exist
|
|
||||||
if [[ ! -f "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir/OcQuirks.plist" ]]; then
|
|
||||||
if [[ -f ./OcQuirks.plist ]]; then
|
|
||||||
cp -R ./OcQuirks.plist "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir"/
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
cd "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir"
|
cd "$EFI_ROOT_DIR/EFI/CLOVER/drivers/$driver_dir"
|
||||||
if [[ "$driver" == OcQuirks.efi ]]; then
|
if [[ "$driver" == OcQuirks.efi ]]; then
|
||||||
for driver in *.efi
|
for driver in *.efi
|
||||||
|
@ -1170,10 +1170,6 @@ if [[ -d "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/Memo
|
|||||||
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${driverName}" \
|
addTemplateScripts --pkg-rootdir="${PKG_BUILD_DIR}/${driverName}" \
|
||||||
--subst="INSTALLER_CHOICE=$packageRefId" MarkChoice
|
--subst="INSTALLER_CHOICE=$packageRefId" MarkChoice
|
||||||
|
|
||||||
if [[ "$driver" == OcQuirks.efi ]]; then
|
|
||||||
cp -R "${SRCROOT}/CloverV2/EFI/CLOVER/drivers/$DRIVERS_OFF/$DRIVERS_UEFI/MemoryFix/OcQuirks.plist" \
|
|
||||||
"${PKG_BUILD_DIR}/${driverName}"/Scripts/
|
|
||||||
fi
|
|
||||||
buildpackage "$packageRefId" "${driverName}" "${PKG_BUILD_DIR}/${driverName}" "${driverDestDir}"
|
buildpackage "$packageRefId" "${driverName}" "${PKG_BUILD_DIR}/${driverName}" "${driverDestDir}"
|
||||||
addChoice --group="MemoryFix64UEFI" --title="$driverName" \
|
addChoice --group="MemoryFix64UEFI" --title="$driverName" \
|
||||||
--start-selected="choicePreviouslySelected('$packageRefId')" \
|
--start-selected="choicePreviouslySelected('$packageRefId')" \
|
||||||
|
Loading…
Reference in New Issue
Block a user