Skip to content

Commit

Permalink
add 3 kexts to kext update list
Browse files Browse the repository at this point in the history
kext 업데이트 리스트에 3개 kext 추가
added kexts(추가된 kext):
CtlnaAHCIPort
SATA-unsupported
AppleMCEReporterDisabler
  • Loading branch information
dropdb220 committed Nov 17, 2021
1 parent 2809f95 commit 244ee94
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README-ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ OpenCore Updater는 모든 kext를 업데이트하지 않고, 앱 내부 리스
* AtherosE2200Ethernet
* USBInjectAll
* XHCI-unsupported
* CtlnaAHCIPort
* SATA-unsupported
* AppleMCEReporterDisabler

나머지 kext는 업데이트되지 않습니다. 하지만 업데이트되지 않은 kext의 새 버전이 있을 경우 수동으로 업데이트해주세요.

Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ OpenCore Updater doesn't update all kexts, but it will update the ones that are
* AtherosE2200Ethernet
* USBInjectAll
* XHCI-unsupported
* CtlnaAHCIPort
* SATA-unsupported
* AppleMCEReporterDisabler

all other kexts will not be updated. However, there might be a newer version of those kexts. If this is the case, you should update them manually.

Expand Down
19 changes: 19 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,15 @@ electron.ipcMain.on('download-kexts', (evt, kexts) => {
if (kexts.includes('BlueToolFixup.kext') || kexts.includes('BrcmBluetoothInjector.kext') || kexts.includes('BrcmBluetoothInjectorLegacy.kext') || kexts.includes('BrcmFirmwareData.kext') || kexts.includes('BrcmFirmwareRepo.kext') || kexts.includes('BrcmNonPatchRAM.kext') || kexts.includes('BrcmNonPatchRAM2.kext') || kexts.includes('BrcmPatchRAM.kext') || kexts.includes('BrcmPatchRAM2.kext') || kexts.includes('BrcmPatchRAM3.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o BrcmPatchRAM-2.6.1-RELEASE.zip https://github.com/acidanthera/BrcmPatchRAM/releases/download/2.6.1/BrcmPatchRAM-2.6.1-RELEASE.zip; mkdir BrcmPatchRAM-2.6.1-RELEASE; cd BrcmPatchRAM-2.6.1-RELEASE; unzip ../BrcmPatchRAM-2.6.1-RELEASE.zip`);
}
if (kexts.includes('CtlnaAHCIPort.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o CtlnaAHCIPort.kext.zip https://github.com/dortania/OpenCore-Install-Guide/raw/master/extra-files/CtlnaAHCIPort.kext.zip; mkdir CtlnaAHCIPort; cd CtlnaAHCIPort; unzip ../CtlnaAHCIPort.kext.zip`);
}
if (kexts.includes('SATA-unsupported.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o SATA-unsupported.kext.zip https://github.com/khronokernel/Legacy-Kexts/raw/master/Injectors/Zip/SATA-unsupported.kext.zip; mkdir SATA-unsuppported; cd SATA-unsupported; unzip ../SATA-unsupported.kext.zip`);
}
if (kexts.includes('AppleMCEReporterDisabler.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o AppleMCEReporterDisabler.kext.zip https://github.com/acidanthera/bugtracker/files/3703498/AppleMCEReporterDisabler.kext.zip; mkdir AppleMCEReporterDisabler.k cd AppleMCEReporterDisabler.kunzip ../AppleMCEReporterDisabler.kext.zip`);
}
evt.returnValue = 'success';
});
electron.ipcMain.on('download-bindata', evt => {
Expand Down Expand Up @@ -348,6 +357,16 @@ electron.ipcMain.on('swap-files', (evt, dir, kexts) => {
if (kexts.includes('BrcmPatchRAM3.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/BrcmPatchRAM-2.6.1-RELEASE/BrcmPatchRAM3.kext" "${dir}/OC/Kexts"`);
}
if (kexts.includes('CtlnaAHCIPort.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/CtlnaAHCIPort/CtlnaAHCIPort.kext" "${dir}/OC/Kexts"`);
}
// do the same for SATA-unsupported and AppleMCEReporterDisabler
if (kexts.includes('SATA-unsupported.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/SATA-unsupported/SATA-unsupported.kext" "${dir}/OC/Kexts"`);
}
if (kexts.includes('AppleMCEReporterDisabler.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/AppleMCEReporterDisabler/AppleMCEReporterDisabler.kext" "${dir}/OC/Kexts"`);
}
evt.returnValue = 'success'
});
electron.ipcMain.on('update-config-plist', (evt, efidir, ocver) => {
Expand Down
5 changes: 4 additions & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ Do you want to contnue?`)) ipc.send('quit');
'BrcmPatchRAM3.kext',
'AtherosE2200Ethernet.kext',
'USBInjectAll.kext',
'XHCI-unsupported.kext'
'XHCI-unsupported.kext',
'CtlnaAHCIPort.kext',
'SATA-unsupported.kext',
'AppleMCEReporterDisabler.kext'
].includes(x)))
if (kextsNotUpdated.length > 0) {
document.querySelector('#kexts-not-updated')!.innerHTML = kextsNotUpdated.join('<br>');
Expand Down

0 comments on commit 244ee94

Please sign in to comment.