Chisle
The coding-agent plugin that bills 52% of a bare model across 20 live tasks. Terse persona + tool-output compressor + context diet.
翻訳待ち
No updates detected yet. GitHub releases will appear here.
融合构建 electron 应用需要的构建工具,保留原有配置习惯的命令行工具,内置模板一键创建,快速开发构建桌面应用程序。
翻訳待ち
Loading the full README.
Read the full README ↗融合 Vite 与 electron-builder 的 Electron 构建工具,一个配置文件完成多环境、多目标的构建与打包。
create-electronup 支持 vanilla、vue、react、react-swc、solid。.env / .env.{mode} 由 dotenv 读取,主进程与 preload 直接使用,渲染进程可使用 VITE_ 前缀变量。electronup.config.ts 管理路径、Vite、pack、preload 与 electron-builder。initAutoUpdater / checkForUpdates / autoUpdater,与 electron-builder 发布配置配合使用。^22.18.0 || ^24.11.0 || >=26.0.0(与 vite-plus 的运行要求一致;仓库使用 24.12.0)>= 28(由应用项目自行安装)npm install electronup -D
yarn add electronup -D
pnpm add electronup -D
pnpm create electronup
或安装到已有项目:
pnpm add -D electronup electron typescript
{
"scripts": {
"dev": "electronup --no-minify",
"build": "electronup build",
"dir": "electronup build --dir --no-asar --no-minify"
}
}
// electronup.config.ts
import { resolve } from 'node:path'
import { defineConfig } from 'electronup'
export default defineConfig({
preload: {
entry: { preload: resolve(__dirname, 'preload/index.ts') },
},
builderConfig: {
appId: 'com.example.app',
},
})
完整配置说明见配置文档。
在主进程 app.whenReady() 之后初始化,事件通过导出的 autoUpdater 代理订阅:
import { autoUpdater, initAutoUpdater } from 'electronup'
import { app } from 'electron'
void app.whenReady().then(() => {
autoUpdater.on('error', error => console.error('更新失败:', error))
initAutoUpdater({ checkOnStart: true, autoDownload: true, autoInstallOnAppQuit: true })
})
更新源由 builderConfig.publish 决定,打包后的应用还需要能解析到 electron-updater:
pnpm add electron-updater # 作为应用的生产依赖
// electronup.config.ts
export default defineConfig({
packConfig: {
noExternal: ['electronup'], // 更新辅助代码内联进主进程产物
},
builderConfig: {
publish: [{ provider: 'github', owner: 'your-org', repo: 'your-app' }],
linux: { target: ['AppImage'] }, // 默认的 snap 目标不支持自动更新
},
})
开发环境(app.isPackaged 为 false)不会发起检查。Windows 使用 NSIS、macOS 使用 zip(需签名)、Linux 使用 AppImage / deb / rpm。参数、事件与验收方式详见自动更新文档。
仓库的 skills/ 目录提供了供 AI 编程助手使用的 Agent Skills(SKILL.md 格式),覆盖创建项目、编写配置、开发与打包、接入自动更新,以及接入 @quiteer/electron-* 运行时模块包。在 Claude Code 中安装:
/plugin marketplace add QuiteerJs/electronup
/plugin install electronup@electronup
也可以把 skills/ 下需要的目录复制到项目的 .claude/skills/(或其他支持 Agent Skills 的工具对应目录)。
@quiteer/electron-*:本仓库 packages/electron-* 下可选的窗口、菜单、托盘、IPC、preload、应用生命周期、快捷键运行时包。