Quay lại Trending
RepositoryTypeScript
BySlin

BySlin/umi-plugin-electron-builder

umi的electron插件

160sao
26fork
0issue
1lượt xem

⚡ Chuyển UumiJS thành app desktop với một plugin

Plugin Electron cho UmiJS 4 — dev, build đa nền tảng, không chỉnh sửa cấu trúc dự án.

umi-plugin-electron-builder là plugin cho phép phát triển ứng dụng Electron dựa trên UmiJS 4 mà không cần thay đổi cấu trúc dự án hiện tại. Hỗ trợ cả cấu trúc dự án hỗn hợp (mixed) và tách biệt main + renderer. Plugin tự động sinh file main process, hỗ trợ cấu hình qua .umirc.ts, tích hợp sẵn electron-builder để đóng gói.

✨ Điểm nổi bật

  • Tự động sinh main process: yarn electron:init tạo src/main/index.ts tức thời.
  • Dev nhanh: yarn electron:dev chạy parallell dev server cho renderer + main process.
  • Build đa nền tảng: umi build electron --win/--mac/--linux, hỗ trợ cả 32/64-bit, arm.
  • Hỗ trợ preload: tự động bundle preload script, cấu hình qua preloadEntry.
  • Cấu hình linh hoạt: hỗ trợ Vite hoặc Webpack builder, externals, routerMode, outputDir.
  • Debug VS Code: hỗ trợ source map, cấu hình .vscode/launch.json mẫu.
  • electron-builder tích hợp: builderOptions để cấu hình appId, publish, icon...
  • Node native modules: hỗ trợ cấu hình externals cho modules như serialport.

💡 Vì sao đáng chú ý

Không giống cách setup Electron thủ công rườm rà, plugin này tích hợp sẵn vào config UmiJS và tự động sinh cấu trúc cần thiết. Phù hợp với dự án UmiJS muốn nhanh chóng có bản desktop mà không rời khỏi workflow hiện tại. Đặc biệt mạnh ở phần build config — linh hoạt chuyển đổi giữa Vite và Webpack, hỗ trợ preload, contextIsolation, và tích hợp electron-builder chuẩn.


#Electron #UmiJS #DesktopApp #OpenSource #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
microsoft/vscode

Visual Studio Code

195.9k
Nov 30, 2026
RepositoryTypeScript
umijs/umi

A framework in react community ✨

16.1k
Nov 25, 2026
RepositoryTypeScript
xin-admin/xin-admin-think

Xin Admin 是基于ThinkPHP8、React、Ant Design、UmiJs 等流行技术栈开发的一款中后台管理框架,具有可扩展性,易于部署,最新技术栈等优点,帮助开发者实现快速开发。 演示地址:https://demo.xinadmin.cn

162
Apr 25, 2025
RepositoryJavaScript
SimulatedGREG/electron-vue

An Electron & Vue.js quick start boilerplate with vue-cli scaffolding, common Vue plugins, electron-packager/electron-builder, unit/e2e testing, vue-devtools, and webpack.

15.3k
Jan 14, 2022
Dataset
TacVerse/TacVerse

Language: English (current) · 中文 TacVerse: A Multi-scene Bimanual Visuo-Tactile Dataset TacVerse is a large-scale bimanual manipulation dataset in which every frame carries four streams of high-resolution visuotactile sensing — two per gripper — alongside the synchronized camera views. It is collected with XTac-UMI-G1, a handheld UMI gripper pair carrying Xense Neutron visuotactile sensors, across three real-world scene families — office, home, and workbench.… See the full description on the dataset page: https://huggingface.co/datasets/TacVerse/TacVerse.

♥0
114.7k
Dec 1, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryC++
electron/electron

:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS

124.3k
Dec 2, 2026
RepositoryPython
microsoft/markitdown

Python tool for converting files and office documents to Markdown.

199.5k
Dec 2, 2026