Coder Social home page Coder Social logo

qolome-epass's Introduction

electron项目模板

用于快速构建桌面客户端项目,包含基础功能如下:

  1. 可开启多个窗口
  2. 可使用vue devtools方便调试
  3. 能生成本地运行日志文件
  4. 包含托盘和托盘菜单
  5. 一键打包成exe
  6. 支持全量更新和增量更新
  7. 本地化 sqlite 存储

主要目录结构如下:

|-- electron
|   |-- main 
|   |   |-- index.ts
|   |   |-- modules // 功能模块
|   |   |   |-- createTray.ts 
|   |   |   `-- maxMinClose.ts
|   |   |-- utils // 相关工具
|   |   |   |-- devtools.ts   
|   |   |   |-- icon.ts       
|   |   |   |-- ipcMain.ts    
|   |   |   |-- log.ts
|   |   |   `-- sqlite.ts
|   |   `-- windows // 创建窗口文件
|   |       |-- mainWin.ts
|   |       `-- updateWin.ts
|   `-- preload  // 预加载脚本文件
|       |-- index.ts
|       `-- renderer.d.ts
|-- electron-builder.json // electron-builder打包配置
|-- installer.nsh // nisi脚本用于修改默认安装路径
|-- resources // 项目图片资源
|-- src //web项目文件夹

启动项目 yarn dev

打包项目 yarn build

详细构建过程可查看

qolome-epass's People

Contributors

iqolome avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.