feat(desktop): add tray behavior and packaging config

This commit is contained in:
nav
2026-05-13 06:57:27 +00:00
parent 5843d3f8ca
commit 54f4b46755
5 changed files with 3397 additions and 10 deletions

View File

@@ -26,3 +26,39 @@ npm run start:dev
```bash
npm start
```
## Build / Release
先安装依赖(包含 `electron-builder`
```bash
npm install
```
仅打包目录(不生成安装包):
```bash
npm run pack
```
跨平台构建入口:
```bash
npm run dist
```
按平台构建:
```bash
npm run dist:linux
npm run dist:mac
npm run dist:win
```
构建产物输出到:
- `dist/`
产物命名规范:
- `Fabric-Desktop-${version}-${os}-${arch}.${ext}`