perf: build compatibility target for Electron 40, 41

This commit is contained in:
alex8088 2026-03-21 14:36:18 +08:00
parent 5a8bbe3d0e
commit 78a117d5be

View File

@ -69,6 +69,8 @@ export function getElectronNodeTarget(): string {
const electronVer = getElectronMajorVer() const electronVer = getElectronMajorVer()
const nodeVer = { const nodeVer = {
'41': '24.14',
'40': '24.14',
'39': '22.20', '39': '22.20',
'38': '22.19', '38': '22.19',
'37': '22.16', '37': '22.16',
@ -100,6 +102,8 @@ export function getElectronChromeTarget(): string {
const electronVer = getElectronMajorVer() const electronVer = getElectronMajorVer()
const chromeVer = { const chromeVer = {
'41': '146',
'40': '144',
'39': '142', '39': '142',
'38': '140', '38': '140',
'37': '138', '37': '138',