Skip to content

Commit

Permalink
Support macOS Ventura for AirportItlwm
Browse files Browse the repository at this point in the history
  • Loading branch information
dropdb220 committed Nov 18, 2022
1 parent 8f9eb2b commit 937ad55
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
Binary file not shown.
17 changes: 12 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -247,10 +247,17 @@ electron.ipcMain.on('download-kexts', async (evt, kexts) => {
});
}
if (kexts.includes('AirportItlwm.kext')) {
kextsToDownload.push({
url: `https://github.com/OpenIntelWireless/itlwm/releases/download/v${versions.itlwm}/AirportItlwm_v${versions.itlwm}_stable_${os.release().startsWith('22.') ? 'Monterey' /* will be 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'
});
if (os.release().startsWith('22.')) {
kextsToDownload.push({
url: 'https://raw.githubusercontent.com/mswgen/oc-updater/main/etc/AirportItlwm-Ventura-v2.2.0-DEBUG-alpha-ee56708.zip',
name: 'AirportItlwm'
})
} else {
kextsToDownload.push({
url: `https://github.com/OpenIntelWireless/itlwm/releases/download/v${versions.itlwm}/AirportItlwm_v${versions.itlwm}_stable_${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'
});
}
}
if (kexts.includes('IntelBluetoothFirmware.kext')) {
kextsToDownload.push({
Expand Down Expand Up @@ -443,7 +450,7 @@ electron.ipcMain.on('swap-files', (evt, dir, kexts) => {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/itlwm/itlwm.kext" "${dir}/OC/Kexts"`);
}
if (kexts.includes('AirportItlwm.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/AirportItlwm/${os.release().startsWith('22.') ? 'Monterey' /* will be Ventura */ : (os.release().startsWith('21.') ? 'Monterey' : (os.release().startsWith('20.') ? 'Big Sur' : (os.release().startsWith('19.') ? 'Catalina' : (os.release().startsWith('18.') ? 'Mojave' : 'High Sierra'))))}/AirportItlwm.kext" "${dir}/OC/Kexts"`);
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/AirportItlwm/${os.release().startsWith('22.') ? 'Ventura' : (os.release().startsWith('21.') ? 'Monterey' : (os.release().startsWith('20.') ? 'Big Sur' : (os.release().startsWith('19.') ? 'Catalina' : (os.release().startsWith('18.') ? 'Mojave' : 'High Sierra'))))}/AirportItlwm.kext" "${dir}/OC/Kexts"`);
}
if (kexts.includes('IntelBluetoothFirmware.kext')) {
cp.execSync(`cp -r "${os.homedir()}/.oc-update/${PID}/IntelBluetoothFirmware/IntelBluetoothFirmware.kext" "${dir}/OC/Kexts"`);
Expand Down

0 comments on commit 937ad55

Please sign in to comment.