4

Electron-egg 1.14.0 发布,桌面软件,从未如此简单

 2 years ago
source link: https://segmentfault.com/a/1190000040760489
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Electron-egg 1.14.0 发布,桌面软件,从未如此简单

一个简单、快速、功能丰富的跨平台桌面软件开发框架。

  1. 很多小伙伴问可以商用么?基于本框架开发的软件,可以商用。
  2. 跨平台:一套代码,可以打包成windows版、Mac版、Linux版或者以web网站运行
  3. 简单高效:支持vue、react、ejs等
  4. 工程化:可以用服务端的开发思维,来编写桌面软件
  5. 高性能:可启动多个工作进程
  6. 功能丰富:服务端的技术场景都可以使用,如:路由、中间件、控制器、服务、定时任务、队列、插件等
  7. 功能demo:桌面软件常见功能,后续逐步集成并完善或提供demo
  8. 更多功能请看文档
  1. 视图样式重构
  2. demo增加分类
  3. demo界面优化,重新排版
  4. 增加选择文件夹目录
  5. 增加ipc通信模块与apis模块语法统一
  6. 增加路由分类
  7. 增加ipc支持长通信,服务端持续向页面发消息
  8. 增加操作系统弹框demo
  9. 删除非必要代码
  10. 修复拉伸窗口空白

1. 常规桌面软件

2. 游戏(h5相关技术开发)

  • 忍者100层

3. 任意网站变桌面软件

  • Youtube

  • discuz-q论坛

4. web项目

  1. # gitee
    git clone https://gitee.com/wallace5303/electron-egg.git
    # github
    git clone https://github.com/wallace5303/electron-egg.git
  2. # 提升安装速度,使用国内镜像;
    npm config set registry https://registry.npm.taobao.org
    # 进入目录 ./electron-egg/
    npm install
  3. # 开发者模式
        # 1:【进入前端目录】,启动vue
        cd frontend && npm install && npm run serve
        
        # 2:【根目录】,启动后端服务
        cd ../ && npm run dev
    
    # 预发布模式(环境变量为:prod)
    npm run start
    
    # 打包-windows版本
    npm run build-w (32位)
    npm run build-w-64 (64位)
    
    # 打包-mac版本
    npm run build-m
    npm run build-m-arm64 (苹果M1芯片架构)
    
    # 打包-linux版本
    npm run build-l
    
    # web运行-开发模式
    npm run web-dev
    
    # web运行-生产者模式-启动
    npm run web-start
    
    # web运行-生产者模式-停止
    npm run web-stop

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK