Skip to content

Commit

Permalink
OpenCore 0.9.4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Aug 16, 2023
1 parent c6070c4 commit d0d6255
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 15 deletions.
7 changes: 4 additions & 3 deletions index-korean.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="get-started">
<img src="./Logo.png" alt="OpenCore Logo" height="30%" width="30%">
<h1>OpenCore Updater</h1>
<h2>지원되는 최신 버전: 0.9.3</h2>
<h2>지원되는 최신 버전: 0.9.4</h2>
<button id="start">시작하기</button>
</div>
<div id="select-opencore-version">
Expand All @@ -26,7 +26,8 @@ <h1>OpenCore 버전 선택</h1>
<li>0.6.3 미만의 버전은 지원되지 않습니다.</li>
</ul>
<select id="oc-version-selection">
<option value="0.9.3" selected>0.9.3</option>
<option value="0.9.4" selected>0.9.4</option>
<option value="0.9.3">0.9.3</option>
<option value="0.9.2">0.9.2</option>
<option value="0.9.1">0.9.1</option>
<option value="0.9.0">0.9.0</option>
Expand Down Expand Up @@ -62,7 +63,7 @@ <h1>OpenCore 버전 선택</h1>
</div>
<div id="efiinfo">
<h1>EFI 정보</h1>
<p>최신 버전: 0.9.3</p>
<p>최신 버전: 0.9.4</p>
<p>현재 버전: <span id="oc-version"></span></p>
<p>사용 중인 kext:</p>
<div id="using-kexts"></div>
Expand Down
7 changes: 4 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div id="get-started">
<img src="./Logo.png" alt="OpenCore Logo" height="30%" width="30%">
<h1>OpenCore Updater</h1>
<h2>Current supported version: 0.9.3</h2>
<h2>Current supported version: 0.9.4</h2>
<button id="start">Get started</button>
</div>
<div id="select-opencore-version">
Expand All @@ -26,7 +26,8 @@ <h1>Select OpenCore version</h1>
<li>Versions older than 0.6.3 are not supported.</li>
</ul>
<select id="oc-version-selection">
<option value="0.9.3" selected>0.9.3</option>
<option value="0.9.4" selected>0.9.4</option>
<option value="0.9.3">0.9.3</option>
<option value="0.9.2">0.9.2</option>
<option value="0.9.1">0.9.1</option>
<option value="0.9.0">0.9.0</option>
Expand Down Expand Up @@ -62,7 +63,7 @@ <h1>Select OpenCore version</h1>
</div>
<div id="efiinfo">
<h1>Your EFI info</h1>
<p>Latest version is 0.9.3.</p>
<p>Latest version is 0.9.4.</p>
<p>Your OpenCore version is <span id="oc-version"></span>.</p>
<p>You're using the following kexts:</p>
<div id="using-kexts"></div>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
22 changes: 15 additions & 7 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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`,
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('<br>');
if (ocverNum < 93) {
if (ocverNum < 94) {
document.querySelector('#is-outdated')!.innerHTML = isKorean ? '구버전 OpenCore를 사용하고 있어요.' : 'Your OpenCore is outdated.';
document.querySelector<HTMLElement>('#update')!.style.display = 'block';
document.querySelector('#update')?.addEventListener('click', async () => {
Expand Down

0 comments on commit d0d6255

Please sign in to comment.