You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.0 KiB
Markdown

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# TauriClient 打包与目录说明
## 1. 打包命令流程
推荐使用双容器模式(默认)同时产出 `amd64``arm64`
```bash
cd /path/to/TauriClient
chmod +x ./scripts/docker/run-build.sh
./scripts/docker/run-build.sh
```
只打指定项目:
```bash
./scripts/docker/run-build.sh call-client
./scripts/docker/run-build.sh broadcast-client
```
可选模式:
- 默认(双容器):`./scripts/docker/run-build.sh`
- 容器 #1 构建 `amd64`
- 容器 #2 构建 `arm64`
- 混合模式:`./scripts/docker/run-build.sh --hybrid`
- 宿主机构建 `amd64`
- 容器构建 `arm64`
## 2. 打包产物位置
统一产物目录:
- `dist/linux-deb/call-client/amd64/*.deb`
- `dist/linux-deb/call-client/arm64/*.deb`
- `dist/linux-deb/broadcast-client/amd64/*.deb`
- `dist/linux-deb/broadcast-client/arm64/*.deb`
Tauri 原始输出目录:
- `call-client/src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/`
- `call-client/src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/`
- `broadcast-client/src-tauri/target/x86_64-unknown-linux-gnu/release/bundle/deb/`
- `broadcast-client/src-tauri/target/aarch64-unknown-linux-gnu/release/bundle/deb/`
## 3. 配置文件目录与日志目录
### 3.1 call-client
配置文件(运行时):
- Linux: `~/.config/call-client/config.json`
- Windows: `%APPDATA%/call-client/config.json`
日志输出(运行时):
- Linux: `~/.local/state/call-client/app.log`
- Windows: `%LOCALAPPDATA%/call-client/state/app.log`
### 3.2 broadcast-client
配置存储(运行时):
- 当前使用浏览器存储(`localStorage`),无独立磁盘配置文件
- 关键键名:
- `runtime_broadcast_config`
- `broadcast_config_local_fallback`
日志输出运行时socket 服务):
- Linux: `~/.config/broadcast-client/socket-service-*.log`
- Windows: `%APPDATA%/broadcast-client/socket-service-*.log`
### 3.3 两个项目仓库内 Tauri 配置文件
- `call-client/src-tauri/tauri.conf.json`
- `broadcast-client/src-tauri/tauri.conf.json`