Skip to content

Commit

Permalink
support OC 0.9.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Apr 15, 2024
1 parent 571b710 commit 13673ee
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 9 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": "75",
"buildNumber": "78",
"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>지원되는 최신 버전: 0.9.8</h2>
<h2>지원되는 최신 버전: 0.9.9</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: 0.9.8</h2>
<h2>Current supported version: 0.9.9</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.1",
"version": "1.4.2",
"description": "OpenCore Updater",
"main": "dist/index.js",
"scripts": {
Expand Down
10 changes: 6 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ import plist from 'plist';
import util from 'util';
import { autoUpdater } from 'electron-updater';
const checksums = {
'bd8eacc89485592fcb6ae09a9869ea77f50e5620c0503b5eed8a4f463fe068c7': '0.9.9',
'952009b5ec2abfd94bb8b8cc50726dccf76f615771bd6cd6e9450205a4ad33c0': '0.9.9',
'2b522620488affbc71bab1057e020309f5af4335138e730770f3a8f9f32a7d1c': '0.9.8',
'3c4fe37014381aa7f4e4e88b2110280982c5f6fb7ae96ec9dab7b7c8d8f3097e': '0.9.8',
'd5c1a8ab4f8c29a2967dc363ddbe671cbb711546e7edde015a37dd50171f8109': '0.9.7',
Expand Down Expand Up @@ -70,7 +72,7 @@ const checksums = {
'dc2381c5ab49ac79ed6be75f9867c5933e6f1e88cb4e860359967fc5ee4916e3': '0.6.3'
}
const versions = {
OpenCore: ['0.9.8', 98],
OpenCore: ['0.9.9', 99],
VirtualSMC: '1.3.2',
Lilu: '1.6.7',
WhateverGreen: '1.6.6',
Expand All @@ -85,7 +87,7 @@ const versions = {
IntelMausi: '1.0.7',
NVMeFix: '1.1.1',
itlwm: '2.2.0',
IntelBluetoothFirmware: '2.3.0',
IntelBluetoothFirmware: '2.4.0',
CpuTscSync: '1.1.0',
CPUFriend: '1.2.7',
HibernationFixup: '1.4.9',
Expand Down Expand Up @@ -307,8 +309,8 @@ 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-42dc7bc.zip'
: `https://raw.githubusercontent.com/mswgen/oc-updater/v1/AirportItlwm-Sonoma14.0-v2.3.0-DEBUG-alpha-42dc7bc.zip`
parseInt(os.release().split('.')[1]) >= 4 ? 'https://raw.githubusercontent.com/mswgen/oc-updater/v1/AirportItlwm-Sonoma14.4-v2.3.0-DEBUG-alpha-e886ebb.zip'
: `https://raw.githubusercontent.com/mswgen/oc-updater/v1/AirportItlwm-Sonoma14.0-v2.3.0-DEBUG-alpha-e886ebb.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`,
name: 'AirportItlwm'
});
Expand Down
2 changes: 1 addition & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,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 < 98 ? (isKorean ? '0.9.8로 업데이트하기' : 'Update to 0.9.8') : (isKorean ? '최신 버전' : 'Up to date');
else ocInfoDesc.innerHTML = ocverNum < 99 ? (isKorean ? `0.9.9로 업데이트하기` : `Update to 0.9.9`) : (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/098-to-099.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
from: 98,
configPlistChange: false
}

0 comments on commit 13673ee

Please sign in to comment.