feat(desktop): add tray behavior and packaging config
This commit is contained in:
36
README.md
36
README.md
@@ -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}`
|
||||
|
||||
Reference in New Issue
Block a user