Skip to content

Commit

Permalink
add CPUFriend to kext update list
Browse files Browse the repository at this point in the history
kext 업데이트 리스트에 CPUFriend 추가
  • Loading branch information
dropdb220 committed Nov 17, 2021
1 parent 244ee94 commit 856fb3e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions README-ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ OpenCore Updater는 모든 kext를 업데이트하지 않고, 앱 내부 리스
* IntelBluetoothInjector
* NVMeFix
* CpuTscSync
* CPUFriend
* AirportBrcmFixup
* BrcmPatchRAM kexts
* BlueToolFixup
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ OpenCore Updater doesn't update all kexts, but it will update the ones that are
* IntelBluetoothInjector
* NVMeFix
* CpuTscSync
* CPUFriend
* AirportBrcmFixup
* BrcmPatchRAM kexts
* BlueToolFixup
Expand Down
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ electron.ipcMain.on('download-kexts', (evt, kexts) => {
if (kexts.includes('CpuTscSync.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o CpuTscSync-1.0.5-RELEASE.zip https://github.com/acidanthera/CpuTscSync/releases/download/1.0.5/CpuTscSync-1.0.5-RELEASE.zip; mkdir CpuTscSync-1.0.5-RELEASE; cd CpuTscSync-1.0.5-RELEASE; unzip ../CpuTscSync-1.0.5-RELEASE.zip`);
}
if (kexts.includes('CPUFriend.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o CPUFriend-1.2.4-RELEASE.zip https://github.com/acidanthera/CPUFriend/releases/download/1.2.4/CPUFriend-1.2.4-RELEASE.zip; mkdir CPUFriend-1.2.4-RELEASE; cd CPUFriend-1.2.4-RELEASE; unzip ../CPUFriend-1.2.4-RELEASE.zip`);
}
if (kexts.includes('AirportBrcmFixup.kext')) {
cp.execSync(`cd ~; mkdir -p .oc-update/${PID}; cd .oc-update/${PID}; curl -L -s -o AirportBrcmFixup-2.1.3-RELEASE.zip https://github.com/acidanthera/AirportBrcmFixup/releases/download/2.1.3/AirportBrcmFixup-2.1.3-RELEASE.zip; mkdir AirportBrcmFixup-2.1.3-RELEASE; cd AirportBrcmFixup-2.1.3-RELEASE; unzip ../AirportBrcmFixup-2.1.3-RELEASE.zip`);
}
Expand Down Expand Up @@ -308,6 +311,10 @@ electron.ipcMain.on('swap-files', (evt, dir, kexts) => {
if (kexts.includes('CpuTscSync.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/CpuTscSync-1.0.5-RELEASE/CpuTscSync.kext" "${dir}/OC/Kexts"`);
}
// CPUFriend.kext -> replace with CPUFriend-1.2.4-RELEASE/CPUFriend.kext
if (kexts.includes('CPUFriend.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/CPUFriend-1.2.4-RELEASE/CPUFriend.kext" "${dir}/OC/Kexts"`);
}
// AirportBrcmFixup.kext -> replace with AirportBrcmFixup-2.3.1-RELEASE/AirportBrcmFixup.kext
if (kexts.includes('AirportBrcmFixup.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/AirportBrcmFixup-2.3.1-RELEASE/AirportBrcmFixup.kext" "${dir}/OC/Kexts"`);
Expand Down
1 change: 1 addition & 0 deletions src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Do you want to contnue?`)) ipc.send('quit');
'IntelBluetoothInjector.kext',
'NVMeFix.kext',
'CpuTscSync.kext',
'CPUFriend.kext',
'AirportBrcmFixup.kext',
'BlueToolFixup.kext',
'BrcmBluetoothInjector.kext',
Expand Down

0 comments on commit 856fb3e

Please sign in to comment.