Skip to content

Commit

Permalink
OC 0.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Apr 10, 2023
1 parent cb3f18c commit 92b5a1e
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 14 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.0</h2>
<h2>지원되는 최신 버전: 0.9.1</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.0" selected>0.9.0</option>
<option value="0.9.1" selected>0.9.1</option>
<option value="0.9.0">0.9.0</option>
<option value="0.8.9">0.8.9</option>
<option value="0.8.8">0.8.8</option>
<option value="0.8.7">0.8.7</option>
Expand Down Expand Up @@ -59,7 +60,7 @@ <h1>OpenCore 버전 선택</h1>
</div>
<div id="efiinfo">
<h1>EFI 정보</h1>
<p>최신 버전: 0.9.0</p>
<p>최신 버전: 0.9.1</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.0</h2>
<h2>Current supported version: 0.9.1</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.0" selected>0.9.0</option>
<option value="0.9.1" selected>0.9.1</option>
<option value="0.9.0">0.9.0</option>
<option value="0.8.9">0.8.9</option>
<option value="0.8.8">0.8.8</option>
<option value="0.8.7">0.8.7</option>
Expand Down Expand Up @@ -59,7 +60,7 @@ <h1>Select OpenCore version</h1>
</div>
<div id="efiinfo">
<h1>Your EFI info</h1>
<p>Latest version is 0.9.0.</p>
<p>Latest version is 0.9.1.</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.14",
"version": "1.2.15",
"description": "OpenCore Updater",
"main": "dist/index.js",
"scripts": {
Expand Down
14 changes: 8 additions & 6 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 = {
'6129ad67049b1d4328e31dc3ab7e545dac9c404a7b2f53fdee462170fed36ea8': '0.9.1',
'8f8cafcd8ba2773d46686d407049b57327cd8199a4d34801c7332a4daac1f597': '0.9.1',
'd7092e886803f8775557378b7d80b75b6813ccf2f8eb507160ff14dc258455be': '0.9.0',
'57d2d66a01f9fd225d7f92616b0bff4b2d1fd5036400acb76a2e8704f694789d': '0.9.0',
'5bc6f10ff45a1ee8558dec953e3ee8990ca2ab0dcc6e4750f130b42211f5333a': '0.8.9',
Expand Down Expand Up @@ -55,15 +57,15 @@ const checksums = {
'dc2381c5ab49ac79ed6be75f9867c5933e6f1e88cb4e860359967fc5ee4916e3': '0.6.3'
}
const versions = {
OpenCore: ['0.9.0', 90],
OpenCore: ['0.9.1', 91],
VirtualSMC: '1.3.1',
Lilu: '1.6.4',
WhateverGreen: '1.6.4',
AppleALC: '1.8.0',
VoodooPS2Controller: '2.3.4',
AppleALC: '1.8.1',
VoodooPS2Controller: '2.3.5',
VoodooI2C: '2.8',
ECEnabler: '1.0.3',
BrightnessKeys: '1.0.2',
BrightnessKeys: '1.0.3',
RealtekRTL8111: '2.4.2',
AtherosE2200Ethernet: '2.2.2',
USBInjectAll: '2018-1108',
Expand All @@ -74,8 +76,8 @@ const versions = {
CpuTscSync: '1.0.9',
CPUFriend: '1.2.6',
HibernationFixup: '1.4.8',
AirportBrcmFixup: '2.1.6',
BrcmPatchRAM: '2.6.4',
AirportBrcmFixup: '2.1.7',
BrcmPatchRAM: '2.6.5',
RealtekCardReader: ['0.9.7', '0.9.7_006a845'],
RealtekCardReaderFriend: ['1.0.4', '1.0.4_e1e3301']
}
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 < 90) {
if (ocverNum < 91) {
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/090-to-091.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: 90,
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.9.1
set UEFI - Output - GopBurstMode to false
*/
plistParsed.UEFI.Output.GopBurstMode = false;
fs.writeFileSync(file, plist.build(plistParsed));
}
}

0 comments on commit 92b5a1e

Please sign in to comment.