大家好,electron-egg 3.10.0
发布。在这个版本里我们优化了跨语言支持。
简单来说,就是可以用java
、go
等语言来写业务,然后通过electron-egg调用;支持windows、macOS、Linux。
其原理是通过child_process创建子进程,并返回一个包含各种属性和方法的对象,cross模块也提供了一些实用的api。
文章结尾,我们提供了 electron-egg for java
和 electron-egg for go
的案例效果。
目前,框架已经广泛应用于记账、政务、企业、医疗、学校、股票交易、ERP、娱乐、视频等领域客户端,请放心使用!
为什么使用
桌面软件(办公方向、 个人工具),仍然是未来十几年 PC 端需求之一,提高工作效率
electron 技术是流行趋势,QQ、百度翻译、阿里网盘、迅雷、有道云笔记 ......
开源
gitee:gitee.com/dromara/ele… 4300+
github:github.com/dromara/ele… 1400+
本次更新
3.10.0
- 【优化】优化 ee-core 模块,支持go、java等。
- 【增加】新增 ee-core cross模块API:run()\killAll()\kill(pid)\killByName(name)\getUrl(name)\getProcByName(name)\getProc(pid)getPids()。
- 【增加】新增 ee-core cross模块进程对象,包含API:pid\name\port\config\child\emitter\kill()\getUrl()\getArgsObj()。
- 【增加】新增 go、java 功能使用demo。
- 【修复】修复 electron/index 缓存问题。
- 【修复】修复 jobs 日志写多了会卡死的问题。
- 【修复】修复 第三方使用model错乱问题。
- 【修改】修改 配置 默认开启gpu,修改默认协议为 file://。
- 【修改】修改 go开发环境配置。
- 【升级】升级ee-core v2.8.2
下载
# gitee
git clone https://gitee.com/dromara/electron-egg.git
# github
git clone https://github.com/dromara/electron-egg.git
安装
# 设置国内镜像源(加速)
npm config set registry=https://registry.npmmirror.com
#如果下载electron慢,配置如下
npm config set electron_mirror=https://registry.npmmirror.com/-/binary/electron/
# 根目录,安装 electron 依赖
npm i
# 进入【前端目录】安装 frontend 依赖
cd frontend
npm i
运行项目
npm run start
electron-egg for go 案例
mayfly-go
下载地址:url21.ctfile.com/f/10443521-… (访问密码: 9598)
开源地址:github.com/dromara/may… (web)
electron-egg for java 案例
northstar
sms
更多
访问官网:www.kaka996.com/