Skip to content

Commit

Permalink
oc 1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Oct 11, 2024
1 parent 90d2266 commit 3cd3aed
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 26 deletions.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"!out",
"!etc"
],
"buildNumber": "87",
"buildNumber": "89",
"mac": {
"category": "public.app-category-utilities",
"electronLanguages": [
Expand Down
2 changes: 1 addition & 1 deletion index-korean.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="get-started">
<img src="./Logo.png" alt="OpenCore Logo" height="30%" width="30%">
<h1>OpenCore Updater</h1>
<h2>지원되는 최신 버전: 1.0.0</h2>
<h2>지원되는 최신 버전: 1.0.2</h2>
<button id="start">시작하기</button>
</div>
<div id="update-list"></div>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<div id="get-started">
<img src="./Logo.png" alt="OpenCore Logo" height="30%" width="30%">
<h1>OpenCore Updater</h1>
<h2>Current supported version: 1.0.0</h2>
<h2>Current supported version: 1.0.2</h2>
<button id="start">Get started</button>
</div>
<div id="update-list"></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.4.3",
"version": "1.4.4",
"description": "OpenCore Updater",
"main": "dist/index.js",
"scripts": {
Expand Down
42 changes: 21 additions & 21 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ import plist from 'plist';
import util from 'util';
import { autoUpdater } from 'electron-updater';
const checksums = {
'225a77dba1defb1bec0069a8857bee298e884f489e0e81dac995ad72bb09ae6e': '1.0.2',
'b3b5044f04ec1ba9d639e027751e90a3aecd5e193e56e66c518eff3c9684e66f': '1.0.2',
'4a5239c4a976d6d927995ba4c65e71c87d7d698add49eaca2b521bbd4db22d33': '1.0.1',
'eff9fd6b65743daef8ca6a59a7154a7ab962631cb90c94523a7e5d4736e6d3d3': '1.0.1',
'aae977bde412c10674f3ddc39a1ae0828845f672ddd610e8b159273f723d8b19': '1.0.0',
'dd79702944585e9964a4b05897aeedce031860136dd4f0f4483719a119ab30fc': '1.0.0',
'bd8eacc89485592fcb6ae09a9869ea77f50e5620c0503b5eed8a4f463fe068c7': '0.9.9',
Expand Down Expand Up @@ -74,29 +78,29 @@ const checksums = {
'dc2381c5ab49ac79ed6be75f9867c5933e6f1e88cb4e860359967fc5ee4916e3': '0.6.3'
}
const versions = {
OpenCore: ['1.0.0', 100],
VirtualSMC: '1.3.2',
Lilu: '1.6.7',
WhateverGreen: '1.6.6',
AppleALC: '1.9.0',
VoodooPS2Controller: '2.3.5',
OpenCore: ['1.0.2', 102],
VirtualSMC: '1.3.4',
Lilu: '1.6.9',
WhateverGreen: '1.6.8',
AppleALC: '1.9.2',
VoodooPS2Controller: '2.3.6',
VoodooI2C: '2.8',
ECEnabler: '1.0.4',
ECEnabler: '1.0.5',
BrightnessKeys: '1.0.3',
RealtekRTL8111: '2.4.2',
AtherosE2200Ethernet: '2.2.2',
USBInjectAll: '2018-1108',
IntelMausi: '1.0.7',
NVMeFix: '1.1.1',
itlwm: '2.2.0',
itlwm: '2.3.0',
IntelBluetoothFirmware: '2.4.0',
CpuTscSync: '1.1.0',
CPUFriend: '1.2.7',
HibernationFixup: '1.5.0',
AirportBrcmFixup: '2.1.8',
BrcmPatchRAM: '2.6.8',
FeatureUnlock: '1.1.5',
RestrictEvents: '1.1.3',
CpuTscSync: '1.1.1',
CPUFriend: '1.2.9',
HibernationFixup: '1.5.2',
AirportBrcmFixup: '2.1.9',
BrcmPatchRAM: '2.6.9',
FeatureUnlock: '1.1.7',
RestrictEvents: '1.1.5',
CpuTopologyRebuild: '1.1.0',
RealtekCardReader: ['0.9.7', '0.9.7_006a845'],
RealtekCardReaderFriend: ['1.0.4', '1.0.4_e1e3301']
Expand Down Expand Up @@ -310,10 +314,7 @@ electron.ipcMain.on('download-kexts', async (evt, ocver, kexts, PID) => {
}
if (kexts.includes('AirportItlwm.kext')) {
kextsToDownload.push({
url: os.release().startsWith('23.') ? (
parseInt(os.release().split('.')[1]) >= 4 ? 'https://raw.githubusercontent.com/mswgen/oc-updater/v1/AirportItlwm-Sonoma14.4-v2.3.0-DEBUG-alpha-4ac4c79.zip'
: `https://raw.githubusercontent.com/mswgen/oc-updater/v1/AirportItlwm-Sonoma14.0-v2.3.0-DEBUG-alpha-4ac4c79.zip`
) : `https://github.com/OpenIntelWireless/itlwm/releases/download/v${versions.itlwm}/AirportItlwm_v${versions.itlwm}_stable_${/*os.release().startsWith('23.') ? 'Sonoma' : */(os.release().startsWith('22.') ? 'Ventura' : (os.release().startsWith('21.') ? 'Monterey' : (os.release().startsWith('20.') ? 'BigSur' : (os.release().startsWith('19.') ? 'Catalina' : (os.release().startsWith('18.') ? 'Mojave' : 'HighSierra')))))}.kext.zip`,
url: `https://github.com/OpenIntelWireless/itlwm/releases/download/v${versions.itlwm}/AirportItlwm_v${versions.itlwm}_stable_${os.release().startsWith('23.') ? 'Sonoma14.' + (parseInt(os.release().split('.')[1]) >= 4 ? '4' : '0') : (os.release().startsWith('22.') ? 'Ventura' : (os.release().startsWith('21.') ? 'Monterey' : (os.release().startsWith('20.') ? 'BigSur' : (os.release().startsWith('19.') ? 'Catalina' : (os.release().startsWith('18.') ? 'Mojave' : 'HighSierra')))))}.kext.zip`,
name: 'AirportItlwm'
});
}
Expand Down Expand Up @@ -553,8 +554,7 @@ electron.ipcMain.on('update-files', async (evt, ocver, kexts, PID, dir, backupDi
filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/itlwm/itlwm.kext`, `${dir}/OC/Kexts/itlwm.kext`]);
}
if (kexts.includes('AirportItlwm.kext')) {
if (os.release().startsWith('23.')) filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/AirportItlwm/Sonoma14.${parseInt(os.release().split('.')[1]) >= 4 ? '4' : '0'}/AirportItlwm.kext`, `${dir}/OC/Kexts/AirportItlwm.kext`]);
else filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/AirportItlwm/AirportItlwm.kext`, `${dir}/OC/Kexts/AirportItlwm.kext`]);
filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/AirportItlwm/AirportItlwm.kext`, `${dir}/OC/Kexts/AirportItlwm.kext`]);
}
if (kexts.includes('IntelBluetoothFirmware.kext')) {
filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/IntelBluetoothFirmware/IntelBluetoothFirmware.kext`, `${dir}/OC/Kexts/IntelBluetoothFirmware.kext`]);
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ window.addEventListener('load', async () => {
const ocInfoDesc = document.createElement('div');
ocInfoDesc.className = 'oc-info-desc';
if (!ocver) ocInfoDesc.innerHTML = isKorean ? '64비트 RELEASE 버전이 지원됨' : '64-bit RELEASE versions are supported';
else ocInfoDesc.innerHTML = ocverNum < 100 ? (isKorean ? `1.0.0으로 업데이트하기` : `Update to 1.0.0`) : (isKorean ? '최신 버전' : 'Up to date');
else ocInfoDesc.innerHTML = ocverNum < 102 ? (isKorean ? `1.0.2로 업데이트하기` : `Update to 1.0.2`) : (isKorean ? '최신 버전' : 'Up to date');
ocInfo.appendChild(ocInfoDesc);
card.appendChild(ocInfo);
card.appendChild(document.createElement('div'));
Expand Down
4 changes: 4 additions & 0 deletions src/update/100-to-101.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
from: 100,
configPlistChange: false
}
16 changes: 16 additions & 0 deletions src/update/101-to-102.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import fs from 'fs';
import plist from 'plist';
export default {
from: 101,
configPlistChange: true,
exec: async (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 1.0.2
create an empty array at UEFI - Unload
*/
plistParsed.UEFI.Unload = [];
fs.writeFileSync(file, plist.build(plistParsed));
}
}

0 comments on commit 3cd3aed

Please sign in to comment.