mirror of
https://github.com/Melorise/TamaASR.git
synced 2026-11-07 14:39:32 +00:00
feat: 发布 MeloASR 0.1.7
整合 Linux Fcitx5 实时输入、网页后端、设置页、悬浮球、托盘和发行打包能力。 AI-assisted-by: Codex AI-model: gpt-5.6-sol AI-reasoning-effort: medium Co-authored-by: Codex <codex@openai.com>
This commit is contained in:
+3
-3
@@ -1,6 +1,6 @@
|
||||
# Linux 分发打包
|
||||
|
||||
MeloASR 0.1.0 的系统包由两部分组成:
|
||||
MeloASR 0.1.7 的系统包由两部分组成:
|
||||
|
||||
- Electron 应用安装到 `/opt/meloasr`,命令入口为 `/usr/bin/meloasr`;
|
||||
- Fcitx5 常驻 addon 由目标发行版中的 CMake/Fcitx5 开发包编译,并安装到该环境报告的 addon 目录。
|
||||
@@ -40,7 +40,7 @@ npm run build:linux:dir
|
||||
packaging/deb/build-deb.sh
|
||||
```
|
||||
|
||||
产物位于 `packaging/out/meloasr_0.1.0_<arch>.deb`。依赖名称按 Debian/Ubuntu 系列填写,但尚未在各发行版完成安装验证。
|
||||
产物位于 `packaging/out/meloasr_0.1.7_<arch>.deb`。依赖名称按 Debian/Ubuntu 系列填写,但尚未在各发行版完成安装验证。
|
||||
|
||||
## rpm
|
||||
|
||||
@@ -68,7 +68,7 @@ flake 使用 nixpkgs 的 Electron,Node 依赖由 `package-lock.json` 的 integ
|
||||
|
||||
## 发布前必须完成
|
||||
|
||||
- 将所有 `example.invalid` 替换成正式仓库地址;
|
||||
- 发布前确认仓库地址和许可证元数据;
|
||||
- 明确项目许可证,并替换临时的 `LicenseRef-Proprietary`/Nix license;
|
||||
- 生成 Arch 源码归档真实 SHA-256;
|
||||
- 在干净的 Debian、RPM、Arch 和 Nix 构建环境逐一构建、安装、卸载;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
pkgname=meloasr
|
||||
pkgver=0.1.0
|
||||
pkgver=0.1.7
|
||||
pkgrel=1
|
||||
pkgdesc='Web-backed voice input for Fcitx5'
|
||||
arch=('x86_64')
|
||||
url='https://example.invalid/meloasr'
|
||||
url='https://github.com/Melorise/MeloASR'
|
||||
license=('custom')
|
||||
depends=('fcitx5' 'gtk3' 'nss' 'libxss' 'mesa' 'alsa-lib')
|
||||
makedepends=('nodejs' 'npm' 'cmake' 'gcc' 'nlohmann-json')
|
||||
|
||||
@@ -1,10 +1,9 @@
|
||||
# Arch Linux 构建
|
||||
|
||||
发布时把项目源码归档为 `meloasr-0.1.0.tar.gz`,与 `PKGBUILD` 放在同一目录,随后运行:
|
||||
发布时把项目源码归档为 `meloasr-0.1.7.tar.gz`,与 `PKGBUILD` 放在同一目录,随后运行:
|
||||
|
||||
```bash
|
||||
makepkg --syncdeps --cleanbuild
|
||||
```
|
||||
|
||||
正式发布必须把 `source` 改为仓库的不可变 release URL,并以 `updpkgsums` 写入真实 SHA-256;仓库地址确定前保留的 `example.invalid` 和 `SKIP` 不能用于发布。
|
||||
|
||||
正式发布必须把 `source` 改为仓库的不可变 release URL,并以 `updpkgsums` 写入真实 SHA-256;当前源码包仍保留 `SKIP`,不能直接作为正式 Arch 发布源。
|
||||
|
||||
@@ -1,3 +1,2 @@
|
||||
#!/bin/sh
|
||||
exec /opt/meloasr/meloasr "$@"
|
||||
|
||||
exec /opt/meloasr/meloasr --ozone-platform=x11 "$@"
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
<p>MeloASR connects supported web speech-recognition backends to the active Fcitx5 input context.</p>
|
||||
<p xml:lang="zh-CN">MeloASR 将支持的网页语音识别后端连接到当前 Fcitx5 输入上下文。</p>
|
||||
</description>
|
||||
<url type="homepage">https://example.invalid/meloasr</url>
|
||||
<url type="homepage">https://github.com/Melorise/MeloASR</url>
|
||||
<launchable type="desktop-id">meloasr.desktop</launchable>
|
||||
<provides>
|
||||
<binary>meloasr</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="0.1.0" date="2026-08-23"/>
|
||||
<release version="0.1.7" date="2026-08-23"/>
|
||||
</releases>
|
||||
</component>
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
project_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
version="${MELOASR_VERSION:-0.1.0}"
|
||||
version="${MELOASR_VERSION:-0.1.7}"
|
||||
arch="${MELOASR_DEB_ARCH:-$(dpkg --print-architecture)}"
|
||||
app_dir="${1:-${project_dir}/release/linux-unpacked}"
|
||||
work_dir="${project_dir}/packaging/out/deb-root"
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "meloasr";
|
||||
version = "0.1.0";
|
||||
version = "0.1.7";
|
||||
|
||||
src = ../..;
|
||||
|
||||
@@ -82,7 +82,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
meta = {
|
||||
description = "Web-backed voice input for Fcitx5";
|
||||
homepage = "https://example.invalid/meloasr";
|
||||
homepage = "https://github.com/Melorise/MeloASR";
|
||||
license = lib.licenses.unfreeRedistributable;
|
||||
mainProgram = "meloasr";
|
||||
platforms = lib.platforms.linux;
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
set -euo pipefail
|
||||
|
||||
project_dir="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/../.." && pwd)"
|
||||
version="${MELOASR_VERSION:-0.1.0}"
|
||||
version="${MELOASR_VERSION:-0.1.7}"
|
||||
app_dir="${1:-${project_dir}/release/linux-unpacked}"
|
||||
stage_dir="${project_dir}/packaging/out/rpm-root"
|
||||
top_dir="${project_dir}/packaging/out/rpmbuild"
|
||||
@@ -23,4 +23,3 @@ rpmbuild -bb \
|
||||
"${project_dir}/packaging/rpm/meloasr-binary.spec"
|
||||
|
||||
find "${top_dir}/RPMS" -type f -name '*.rpm' -exec cp -f {} "${project_dir}/packaging/out/" \;
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ Version: %{meloasr_version}
|
||||
Release: 1%{?dist}
|
||||
Summary: Web-backed voice input for Fcitx5
|
||||
License: LicenseRef-Proprietary
|
||||
URL: https://example.invalid/meloasr
|
||||
URL: https://github.com/Melorise/MeloASR
|
||||
Source0: meloasr-root.tar.gz
|
||||
|
||||
Requires: fcitx5
|
||||
@@ -36,5 +36,5 @@ tar -C %{buildroot} -xzf %{SOURCE0}
|
||||
/etc/xdg/autostart/meloasr.desktop
|
||||
|
||||
%changelog
|
||||
* Sun Aug 23 2026 MeloASR contributors - 0.1.0-1
|
||||
* Sun Aug 23 2026 MeloASR contributors - 0.1.7-1
|
||||
- Initial package
|
||||
|
||||
Reference in New Issue
Block a user