BySlin/umi-plugin-electron-builder
umi的electron插件
⚡ 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:inittạosrc/main/index.tstức thời. - Dev nhanh:
yarn electron:devchạ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.jsonmẫu. - electron-builder tích hợp:
builderOptionsđể cấu hình appId, publish, icon... - Node native modules: hỗ trợ cấu hình
externalscho 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.
Xin Admin 是基于ThinkPHP8、React、Ant Design、UmiJs 等流行技术栈开发的一款中后台管理框架,具有可扩展性,易于部署,最新技术栈等优点,帮助开发者实现快速开发。 演示地址:https://demo.xinadmin.cn
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.
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.
Reverse engineer anything with agents, from app behavior down to native binaries.
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
:electron: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Python tool for converting files and office documents to Markdown.