https://github.com/hunlongyu/webview2-template
this is a webview2 template for c++
https://github.com/hunlongyu/webview2-template
Last synced: 7 months ago
JSON representation
this is a webview2 template for c++
- Host: GitHub
- URL: https://github.com/hunlongyu/webview2-template
- Owner: Hunlongyu
- Created: 2022-12-13T05:53:29.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-14T08:49:29.000Z (over 3 years ago)
- Last Synced: 2025-05-31T07:10:14.369Z (about 1 year ago)
- Language: C++
- Size: 5.47 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Webview2 模板
主要是将本地 html 转成 exe。通过 config.json 文件配置,可以修改 exe 的 title,ico等。
- [x] 配置文件读取
- [x] 配置 title
- [ ] 配置 ico
- [x] 配置宽高
- [ ] 配置启动页
- [ ] 配置右键菜单是否显示
- [ ] 配置开发者工具是否开启
配合 单文件打包工具 可以生成最小 150KB 大小的单文件可执行 exe。
配合 wix 或者 nsis 可以生成 3MB 左右的安装包?(待验证)
优点:
1. 可以进行一些简单配置
2. 生成的 exe 很小
3. 可以通过 js/html5/css3 技术快速实现界面搭建
4. 复杂的高性能业务可以使用 C++ 技术实现
缺点:
1. 目前只支持 win10 2004及更高的版本,低版本需要安装 webview2 的运行环境。
2. 运行时内存占用并不低,60MB 左右。
3. 启动慢