Skip to content

Commit

Permalink
OC 0.8.9 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Feb 15, 2023
1 parent 99aa25b commit f8f96ef
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 13 deletions.
Binary file not shown.
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.8.8</h2>
<h2>지원되는 최신 버전: 0.8.9</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.8.8" selected>0.8.8</option>
<option value="0.8.9" selected>0.8.9</option>
<option value="0.8.8">0.8.8</option>
<option value="0.8.7">0.8.7</option>
<option value="0.8.6">0.8.6</option>
<option value="0.8.5">0.8.5</option>
Expand Down Expand Up @@ -57,7 +58,7 @@ <h1>OpenCore 버전 선택</h1>
</div>
<div id="efiinfo">
<h1>EFI 정보</h1>
<p>최신 버전: 0.8.8</p>
<p>최신 버전: 0.8.9</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.8.8</h2>
<h2>Current supported version: 0.8.9</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.8.8" selected>0.8.8</option>
<option value="0.8.9" selected>0.8.9</option>
<option value="0.8.8">0.8.8</option>
<option value="0.8.7">0.8.7</option>
<option value="0.8.6">0.8.6</option>
<option value="0.8.5">0.8.5</option>
Expand Down Expand Up @@ -57,7 +58,7 @@ <h1>Select OpenCore version</h1>
</div>
<div id="efiinfo">
<h1>Your EFI info</h1>
<p>Latest version is 0.8.8.</p>
<p>Latest version is 0.8.9.</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.12",
"version": "1.2.13",
"description": "OpenCore Updater",
"main": "dist/index.js",
"scripts": {
Expand Down
12 changes: 7 additions & 5 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 = {
'5bc6f10ff45a1ee8558dec953e3ee8990ca2ab0dcc6e4750f130b42211f5333a': '0.8.9',
'9a8b23aabff27a1850555d561961ed69c23496346a2b4d609b7cc68269ed9de2': '0.8.9',
'70329873e36573ebfe81ba53fc6800bd513cad3644371f1600819ded772b171a': '0.8.8',
'674d63caa32fb7e959e3840992e28c6ebc41bb2f96a6940ae241904e0d16bff7': '0.8.8',
'80fb8017dffa74dea70fc0ee0baf10b57d47ad51f2fa7a0915c9760e48effc9c': '0.8.7',
Expand Down Expand Up @@ -51,11 +53,11 @@ const checksums = {
'dc2381c5ab49ac79ed6be75f9867c5933e6f1e88cb4e860359967fc5ee4916e3': '0.6.3'
}
const versions = {
OpenCore: ['0.8.8', 88],
OpenCore: ['0.8.9', 89],
VirtualSMC: '1.3.0',
Lilu: '1.6.3',
WhateverGreen: '1.6.3',
AppleALC: '1.7.8',
WhateverGreen: '1.6.4',
AppleALC: '1.7.9',
VoodooPS2Controller: '2.3.3',
VoodooI2C: '2.7.1',
ECEnabler: '1.0.3',
Expand All @@ -69,7 +71,7 @@ const versions = {
IntelBluetoothFirmware: '2.2.0',
CpuTscSync: '1.0.9',
CPUFriend: '1.2.6',
HibernationFixup: '1.4.7',
HibernationFixup: '1.4.8',
AirportBrcmFixup: '2.1.6',
BrcmPatchRAM: '2.6.4',
RealtekCardReader: ['0.9.7', '0.9.7_006a845'],
Expand Down Expand Up @@ -254,7 +256,7 @@ electron.ipcMain.on('download-kexts', async (evt, kexts) => {
if (kexts.includes('AirportItlwm.kext')) {
if (os.release().startsWith('22.')) {
kextsToDownload.push({
url: 'https://raw.githubusercontent.com/mswgen/oc-updater/v1/etc//AirportItlwm-Ventura-v2.2.0-DEBUG-alpha-e0f745e.zip',
url: 'https://raw.githubusercontent.com/mswgen/oc-updater/v1/etc//AirportItlwm-Ventura-v2.2.0-DEBUG-alpha-ddd2768.zip',
name: 'AirportItlwm'
})
} else {
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 < 88) {
if (ocverNum < 89) {
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
17 changes: 17 additions & 0 deletions src/update/088-to-089.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// import plist and fs
import fs from 'fs';
import plist from 'plist';
export default {
from: 88,
configPlistChange: true,
exec: (file: string) => {
// read ${file} as utf8, parse it as plist, and save it to variable `plistParsed`
const plistParsed: any = plist.parse(fs.readFileSync(file, 'utf8'));
/*
// Changes of OpenCore 0.8.9
set UEFI - Quirks - ResizeUsePciRbIo to false
*/
plistParsed.UEFI.Quirks.ResizeUsePciRbIo = false;
fs.writeFileSync(file, plist.build(plistParsed));
}
}

0 comments on commit f8f96ef

Please sign in to comment.