perf: build compatilibity target for Electron 31

This commit is contained in:
alex8088 2024-06-13 23:45:44 +08:00
parent 1838bdbf3e
commit d79de5abb6

View file

@ -64,6 +64,7 @@ export function getElectronNodeTarget(): string {
const electronVer = getElectronMajorVer() const electronVer = getElectronMajorVer()
const nodeVer = { const nodeVer = {
'31': '20.14',
'30': '20.11', '30': '20.11',
'29': '20.9', '29': '20.9',
'28': '18.18', '28': '18.18',
@ -95,6 +96,7 @@ export function getElectronChromeTarget(): string {
const electronVer = getElectronMajorVer() const electronVer = getElectronMajorVer()
const chromeVer = { const chromeVer = {
'31': '126',
'30': '124', '30': '124',
'29': '122', '29': '122',
'28': '120', '28': '120',