Skip to content
项目

umbrella22/electron-vite-template

在 GitHub 查看

关于

基于 Vite 和 Rollup 构建的 Vue 3、Vite 和 Electron 项目模板,功能与我之前的 Electron + Vue 模板项目相同。

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
0
15天
0
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文

electron-vite-template

GitHub Repo stars electron vue node pnpm license Build TEST

A pnpm monorepo Electron + Vue 3 desktop application template — domain-grouped typed IPC, contextBridge security model, and optional V8 bytecode protection, all out of the box.

Documentation

📘 Documentation (Chinese only)

The docs cover everything: getting started, the IPC contract system, the security model, build & packaging, hot update, bytecode protection, and CI workflows.

Requirements

  • Node.js ≥ 24 — build scripts run on Node's native TypeScript support
  • pnpm — the only package manager used (corepack enable aligns the version via the packageManager field)

Build Setup

# Clone this repository
$ git clone https://github.com/umbrella22/electron-vite-template.git
# Go into the repository
$ cd electron-vite-template
# Install dependencies
$ pnpm install

# Start development (hot reload at localhost:9080)
$ pnpm dev

# Build and package for the current platform
$ pnpm run build

# Build without generating an installer (fast packaging check)
$ pnpm run build:dir

Feature list

  • Typed domain-grouped IPC (app:openWin, browser:selectTab, ...) with compile-time safety
  • contextIsolation + sandbox security model with a whitelisted preload bridge
  • Auto update (electron-updater)
  • Incremental hot update (renderer + main process content)
  • Optional main-process bytecode protection (opt-in, zero toolchain)
  • vp run cached build pipeline & 3-platform CI workflows
  • i18n

Built-in

Note

  • gitee is only for domestic users to pull code; it is synced from GitHub — please visit GitHub for PRs
  • Welcome to Issues and PR

探索相关项目

加载中…