多应用+插件架构,代码干净,支持一键云编译,码云点赞13K star,4.8-4.12 预售价格198元 广告
[TOC] # 下载加速 用户目录下: `C:/Users/ChandlerVer5/.npmrc` ``` home=https://npm.taobao.org registry=https://registry.npm.taobao.org/ disturl=https://npm.taobao.org/mirrors/node ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ ELECTRON_CUSTOM_DIR={{ version }} ``` # 实用库 ## [electron-localshortcut](https://hub.fastgit.org/parro-it/electron-localshortcut) ## electron-serve https://github.com/sindresorhus/electron-serve 为 eletron 应用中的静态文件开启一个服务 ## electron-window-state ## Electron Forge https://www.electronforge.io/?utm_source=default_app ## electron-webpack https://webpack.electron.build/using-static-assets ## electron-devtools-installer https://github.com/MarshallOfSound/electron-devtools-installer ## electron-rebuild Electron 附带了自己的 Node 运行时,运行`npm install`或`yarn install`时,它可能与在计算机上运行的 Node 的版本相同或不同。 它会根据 Electron 使用的 Node版本(而不是系统上安装的版本)重建 native node 模块 `package.json`: ~~~ "scripts": { "postinstall": "electron-rebuild -f -w pouchdb" } ~~~ > 参考:pouchdb 打包出错! # 更新 ## electron-updater # 请求 ## got https://github.com/sindresorhus/got ## superagent https://github.com/visionmedia/superagent # 数据 ## [electron-settings](https://github.com/nathanbuchar/electron-settings) ## electron-json-storage https://github.com/electron-userland/electron-json-storage ## electron-store https://github.com/sindresorhus/electron-store ## Dexie Dexie.js is a wrapper library for indexedDB - the standard database in the browser.[http://dexie.org](http://dexie.org) ## nedb-promises [nedb-promises](https://github.com/bajankristof/nedb-promises) is a wrapper around NEDB. I suggest using this over Nedb directly. Sooner or later, you’d need to wait for your data to arrive. ## Knex.js # 打包工具 ## 为什么推荐使用 `electron-builder`? [`electron-packager`](https://github.com/electron-userland/electron-packager) 和 [`electron-builder`](https://github.com/electron-userland/electron-builder) 都是用于 electron 应用打包的模块, 相比较`electron-builder`有更丰富的功能,支持更多的平台,打包的文件更加轻量,支持非`electron`内置的自动更新(内置的自动更新需上传到git等支持平台) > [你不知道的 Electron (二):了解 Electron 打包](https://juejin.im/post/5ba3372be51d450ea1322d49) # 脚手架工具 当然你也可是使用各种脚手架来方便开发和构建: [secure-electron-template](https://github.com/reZach/secure-electron-template/) [electron-react-boilerplate](https://www.electronjs.org/docs/tutorial/boilerplates-and-clis#electron-react-boilerplate)[sindresorhus/electron-boilerplate](https://github.com/sindresorhus/electron-boilerplate) # 搜索需要的模板 https://github.com/H-SoftSoluciones/electron-react.git https://github.com/qutek/react-electron-setup/blob/master/package.json https://github.com/search?o=desc&q=electron+hot+loader&s=updated&type=Repositories [https://juejin.im/post/5da98b906fb9a04e195061ca](https://juejin.im/post/5da98b906fb9a04e195061ca) 模块打包分析 # 替代品 ## 轻量级的 Electron [Proton Native](https://github.com/kusti8/proton-native) [cztomsik/graffiti](https://github.com/cztomsik/graffiti) [tauri](https://github.com/tauri-apps/tauri) https://github.com/parro-it/libui-node [做了一个轻量级的 Electron,使用的是系统自带的 webview](https://www.v2ex.com/t/534429) [maierfelix/azula](https://github.com/maierfelix/azula) [sciter – Multiplatform HTML/CSS/JavaScript UI Engine for Desktop and Mobile Application](https://sciter.com/) # vuido https://github.com/mimecorg/vuido # Neutralinojs https://hub.fastgit.org/neutralinojs # nodegui https://github.com/nodegui/nodegui 1. https://react.nodegui.org/ 2. https://vue.nodegui.org/ 3. https://svelte.nodegui.org/ # webview https://hub.fastgit.org/webview/webview Tiny cross-platform webview library for C/C++/Golang. ## 参考 https://hub.fastgit.org/chromelyapps/Chromely > [Svelte NodeGUI 发布了!我们现在可以使用 Qt 和 Svelte 构建原生桌面端应用程序 (juejin.cn)](https://juejin.cn/post/6939428781924810783) # 查询软件的替代方案 [Electron替代品和类似软件 — Altapps.net](https://zh.altapps.net/soft/electron) https://alternativeto.net/software/alfred/?platform=windows https://stackshare.io/desire-course/desirecourse-net [Build lightweight cross-platform desktop apps with JavaScript, HTML, and CSS | Neutralinojs](https://neutralino.js.org/) [microsoft/react-native-macos: A framework for building native macOS apps with React. (github.com)](https://github.com/microsoft/react-native-macos) [Build smaller, faster, and more secure desktop applications with a web frontend | Tauri Apps](https://tauri.app/) # 参考 https://www.electronjs.org/docs https://github.com/sindresorhus/awesome-electron # 文章 [How to run background worker processes in an Electron App](https://medium.com/swlh/how-to-run-background-worker-processes-in-an-electron-app-e0dc310a93cc) [electron-data-persistence](https://www.techiediaries.com/electron-data-persistence/) [a gluten free electron react setup ft live reload](https://medium.com/@shivekkhurana/a-gluten-free-electron-react-setup-ft-live-reload-f6e5bbbd964) [Create Your First React Desktop Application in Electron with CRA](https://jsmanifest.com/create-your-first-react-desktop-application-in-electron-with-hot-reload/)