Skip to content

Commit

Permalink
airportitlwm 업데이트(macos 14.4 지원)
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Mar 10, 2024
1 parent 72805bb commit 571b710
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 6 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": "74",
"buildNumber": "75",
"mac": {
"category": "public.app-category-utilities",
"electronLanguages": [
Expand Down
30 changes: 29 additions & 1 deletion opencore.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.0",
"version": "1.4.1",
"description": "OpenCore Updater",
"main": "dist/index.js",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,10 @@ electron.ipcMain.on('download-kexts', async (evt, ocver, kexts, PID) => {
}
if (kexts.includes('AirportItlwm.kext')) {
kextsToDownload.push({
url: os.release().startsWith('23.') ? 'https://raw.githubusercontent.com/mswgen/oc-updater/v1/AirportItlwm-Sonoma-v2.3.0-DEBUG-alpha-3e1624d.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: 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`
) : `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 Expand Up @@ -545,7 +547,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`]);
}
if (kexts.includes('AirportItlwm.kext')) {
if (os.release().startsWith('23.')) filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/AirportItlwm/Sonoma/AirportItlwm.kext`, `${dir}/OC/Kexts`]);
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`]);
else filesToUpdate.push([`${os.homedir()}/.oc-update/${PID}/AirportItlwm/AirportItlwm.kext`, `${dir}/OC/Kexts`]);
}
if (kexts.includes('IntelBluetoothFirmware.kext')) {
Expand Down

0 comments on commit 571b710

Please sign in to comment.