Files
Fabric.Desktop/README.md

65 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Fabric.Desktop
Electron desktop shell for Fabric.Frontend.
## 功能(当前)
- BrowserWindow 基础配置(尺寸/最小尺寸/标题)
- Dev/Prod 加载策略dev server / 本地 offline.html
- 基础菜单与快捷键(刷新、开发者工具、退出)
- 安全基线:`contextIsolation` + `sandbox` + 禁止任意新窗口/导航
- `preload + IPC` 白名单:
- `fabric:config:get`
- `fabric:config:set`
- `fabric:notify`
## Dev
```bash
npm install
npm run start:dev
```
`start:dev` expects Frontend dev server at `http://localhost:5173`.
## Standalone
```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}`