nodegui官方团队提供了基于react 应用开发方式,同时我们集成官方的packer 进行快速的应用打包

项目说明

项目使用了官方的计算机应用,我使用官方的react starter,同时添加了packer ,当前运行环境为mac,windows以及linux
暂时还没有尝试过

环境准备

  • clone 代码
git clone https://github.com/nodegui/react-nodegui-starter.git
npm i @nodegui/packer --save-dev
  • 添加npm script
  "package":"nodegui-packer --init cal-app && yarn build && nodegui-packer --pack ./dist",

构建&&效果

  • 安装依赖
npm i
  • 构建&&打包
npm run pacakge
  • 效果

nodegui 使用react开发跨平台应用试用

 

 

  • 运行应用

nodegui 使用react开发跨平台应用试用

 

 

  • 内存占用

nodegui 使用react开发跨平台应用试用

 

 

说明

使用nodegui 开发跨平台桌面应用是一个很不错的选择,如果我们对于内存以及cpu 占用要求比较高的话,可以尝试使用此框架

参考资料

https://github.com/rongfengliang/nodegui-react-cal-packer
https://github.com/nodegui/examples/tree/master/react-nodegui/calculator
https://github.com/nodegui/nodegui
https://github.com/nodegui/react-nodegui-starter
https://github.com/nodegui/packer

相关文章:

  • 2021-10-31
  • 2021-11-11
  • 2022-12-23
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2021-04-19
  • 2021-12-01
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2021-07-11
  • 2021-11-21
  • 2022-03-08
  • 2021-05-12
  • 2021-09-04
相关资源
相似解决方案