Files
TamaASR/packaging/arch/README.md
T
MeloriseandCodex 3e04e30b24 fix: 适配新版千问录音状态并升级至 1.0.3
AI-assisted-by: Codex
AI-model: gpt-5.6-sol
AI-reasoning-effort: medium
Co-authored-by: Codex <codex@openai.com>
2026-10-07 00:37:24 +08:00

28 lines
1.1 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.
# Arch Linux 打包
## 默认:从官方 deb 重打包
远程 Release 附带的 `PKGBUILD` 是 bin 版。它根据当前 Arch 架构下载同一 Release 中的 `amd64.deb` 或 `arm64.deb`,解出已经构建好的 Electron 应用、桌面文件和 Fcitx5 addon,再交给 `makepkg` 生成 pacman 包,不会在本地重复编译源码。
下载后直接运行:
```bash
curl --fail --location --remote-name \
https://github.com/Melorise/TamaASR/releases/download/v1.0.3/PKGBUILD
makepkg --syncdeps --cleanbuild
```
`x86_64` 使用 `tama-asr_<version>_amd64.deb`,`aarch64` 使用 `tama-asr_<version>_arm64.deb`。这两个 deb 与 Arch 包来自同一版本的官方 Release。
## 可选:从源码构建
需要完整源码构建时,使用 Release 同时附带的 `PKGBUILD-from-source`:
```bash
curl --fail --location --remote-name \
https://github.com/Melorise/TamaASR/releases/download/v1.0.3/PKGBUILD-from-source
makepkg --syncdeps --cleanbuild -p PKGBUILD-from-source
```
源码版保留原有流程:下载对应 Git 标签的源码归档,安装锁文件依赖,构建 Electron 应用和 Fcitx5 addon,运行测试后再生成 pacman 包。