electron-edge-js编译

安装.netsdk包

否则安装过程中会提示找不到mscoree.lib

参考

修改buildall.bat

build.bat 14.0.0 15.0.0  16.0.0
分别对应electron版本

修改build.bat

if "%3" equ "2.0.0" (
    SET target=8.9.3
) else if "%3" equ "3.0.0" (
    SET target=10.2.0
) else if "%3" equ "4.0.0" (
    SET target=10.11.0
) else if "%3" equ "5.0.0" (
    SET target=12.0.0
) else if "%3" equ "6.0.0" (
    SET target=12.4.0
) else if "%3" equ "7.0.0" (
    SET target=12.8.1
) else if "%3" equ "8.0.0" (
    SET target=12.13.0
) else if "%3" equ "9.0.0" (
    SET target=12.14.1
) else if "%3" equ "10.0.0" (
    SET target=12.16.3
) else if "%3" equ "11.0.0" (
    SET target=12.18.3
) else if "%3" equ "12.0.0" (
    SET target=14.16.0
) else if "%3" equ "13.0.0" (
    SET target=14.16.0
) else if "%3" equ "14.0.0" (
    SET target=14.17.0
) else if "%3" equ "15.0.0" (
    SET target=15.5.0
) else if "%3" equ "16.0.0" (
    SET target=16.9.1
) else (
    echo edge-electron-js does not support Electron %3.
    exit /b -1
)

electron 对应nodejs版本
或者查看electron版本更新公告

posted @ 2021-11-26 09:14  后凤凰  阅读(624)  评论(0)    收藏  举报