Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] 针对win平台采用webview2可大幅度减小体积 #7

Open
MliKiowa opened this issue Jan 18, 2024 · 1 comment
Open

[feat] 针对win平台采用webview2可大幅度减小体积 #7

MliKiowa opened this issue Jan 18, 2024 · 1 comment
Labels
优化项 New feature or request 暂不处理 This will not be worked on

Comments

@MliKiowa
Copy link

electron 打包出来目前可以看见大小已经来到100mb了
如果替换为Webview2 适配在win端
优点有
1.可兼容大部分Win10/11设备
2.可减少90%的程序大小
3.具有完整的浏览器能力
至于如何实现
采用win32 cpp或者c# 预先构建一个webview2完成的基本框架 框架根据配置文件加载应用程序 对于electron部分api我们同样可用进行js绑定cpp/c#接口进行实现 最后使用nsi打包出包
在性能 启动速度 浏览器能力 包的大小上具有优势 缺点很明显就是要专门写一个webview2加载程序 需要花费人力和时间

@JimHans
Copy link
Owner

JimHans commented Feb 21, 2024

暂时先不考虑,太费时间且我对webview2还是不太熟悉,但可以放在未来计划里

@JimHans JimHans added the 优化项 New feature or request label Feb 21, 2024
@JimHans JimHans added the 暂不处理 This will not be worked on label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
优化项 New feature or request 暂不处理 This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants