From d0d62557f9e60d2b9fc936131b6a058fe529f234 Mon Sep 17 00:00:00 2001 From: mswgen <54498184+mswgen@users.noreply.github.com> Date: Wed, 16 Aug 2023 23:56:54 +0900 Subject: [PATCH] OpenCore 0.9.4 support --- index-korean.html | 7 ++++--- index.html | 7 ++++--- package.json | 2 +- src/index.ts | 22 +++++++++++++++------- src/renderer.ts | 2 +- 5 files changed, 25 insertions(+), 15 deletions(-) diff --git a/index-korean.html b/index-korean.html index 350c1db..6a6bbee 100644 --- a/index-korean.html +++ b/index-korean.html @@ -12,7 +12,7 @@
OpenCore Logo

OpenCore Updater

-

지원되는 최신 버전: 0.9.3

+

지원되는 최신 버전: 0.9.4

@@ -26,7 +26,8 @@

OpenCore 버전 선택

  • 0.6.3 미만의 버전은 지원되지 않습니다.
  • - + + @@ -62,7 +63,7 @@

    Select OpenCore version

    Your EFI info

    -

    Latest version is 0.9.3.

    +

    Latest version is 0.9.4.

    Your OpenCore version is .

    You're using the following kexts:

    diff --git a/package.json b/package.json index 2eb7957..2c3270f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "oc-updater", "productName": "OpenCore Updater", - "version": "1.2.18", + "version": "1.2.19", "description": "OpenCore Updater", "main": "dist/index.js", "scripts": { diff --git a/src/index.ts b/src/index.ts index 5a4b034..e4c90e3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,6 +9,8 @@ import util from 'util'; import { autoUpdater } from 'electron-updater'; const PID = Math.floor(Math.random() * 1000000); const checksums = { + 'dad93195c897adb324b8d8364d1b07fa1dd48fa95280d11c613a409f4ccb20ca': '0.9.4', + '88aa4d87ac6782a943a97527e24f6d3423f3cd706f7042c72b6c1475d78e572f': '0.9.4', 'b1599f3c2dff751367d907fade59020d356344a7413e18ed474193046a2bc7ba': '0.9.3', '444d287a497bfd087195ed3451ed06e11eb168f8c108de32be493ddeea22071c': '0.9.3', '3b9252efdc3798ea73e6e9fc37ca812d59eaacb2c4cd2a7cf6658bc8cab88ae5': '0.9.2', @@ -61,11 +63,11 @@ const checksums = { 'dc2381c5ab49ac79ed6be75f9867c5933e6f1e88cb4e860359967fc5ee4916e3': '0.6.3' } const versions = { - OpenCore: ['0.9.3', 93], + OpenCore: ['0.9.4', 94], VirtualSMC: '1.3.2', - Lilu: '1.6.6', - WhateverGreen: '1.6.5', - AppleALC: '1.8.3', + Lilu: '1.6.7', + WhateverGreen: '1.6.6', + AppleALC: '1.8.4', VoodooPS2Controller: '2.3.5', VoodooI2C: '2.8', ECEnabler: '1.0.4', @@ -74,14 +76,14 @@ const versions = { AtherosE2200Ethernet: '2.2.2', USBInjectAll: '2018-1108', IntelMausi: '1.0.7', - NVMeFix: '1.1.0', + NVMeFix: '1.1.1', itlwm: '2.2.0', - IntelBluetoothFirmware: '2.2.0', + IntelBluetoothFirmware: '2.3.0', CpuTscSync: '1.1.0', CPUFriend: '1.2.7', HibernationFixup: '1.4.9', AirportBrcmFixup: '2.1.7', - BrcmPatchRAM: '2.6.7', + BrcmPatchRAM: '2.6.8', FeatureUnlock: '1.1.5', RestrictEvents: '1.1.2', CpuTopologyRebuild: '1.1.0', @@ -306,6 +308,12 @@ electron.ipcMain.on('download-kexts', async (evt, kexts) => { name: 'RestrictEvents' }); } + if (kexts.includes('CpuTopologyRebuild.kext')) { + kextsToDownload.push({ + url: `https://github.com/b00t0x/CpuTopologyRebuild/releases/download/${versions.CpuTopologyRebuild}/RestrictEvents-${versions.CpuTopologyRebuild}-RELEASE.zip`, + name: 'CpuTopologyRebuild' + }); + } if (kexts.includes('AirportBrcmFixup.kext')) { kextsToDownload.push({ url: `https://github.com/acidanthera/AirportBrcmFixup/releases/download/${versions.AirportBrcmFixup}/AirportBrcmFixup-${versions.AirportBrcmFixup}-RELEASE.zip`, diff --git a/src/renderer.ts b/src/renderer.ts index c64f42d..af3f646 100644 --- a/src/renderer.ts +++ b/src/renderer.ts @@ -11,7 +11,7 @@ function afterOcverSelection(ocver: string, efidir: string) { const ocverNum = Number(ocver.split('.').join('')); document.querySelector('#oc-version')!.innerHTML = ocver; document.querySelector('#using-kexts')!.innerHTML = kexts.join('
    '); - if (ocverNum < 93) { + if (ocverNum < 94) { document.querySelector('#is-outdated')!.innerHTML = isKorean ? '구버전 OpenCore를 사용하고 있어요.' : 'Your OpenCore is outdated.'; document.querySelector('#update')!.style.display = 'block'; document.querySelector('#update')?.addEventListener('click', async () => {