Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
c55094d
feat(linux-egui): 补上「检查更新」——检测 GitHub 发布、跟随 Beta 频道、自动检查真正生效
aeoform Oct 27, 2026
3187f52
feat(linux-egui): 自动检查发现新版本时发一条桌面通知
aeoform Oct 27, 2026
704a18b
feat(linux-egui): 光标上下文与自动学词落地(fcitx5 surrounding text)
aeoform Oct 27, 2026
aaa6761
fix(linux-egui): 把三条没接线的接口接上(QaLevel / InsertFallback / Notification)
aeoform Oct 27, 2026
6d8546b
feat(linux-egui): 麦克风热插拔与热键状态接线;按决定下线剪贴板相关面
aeoform Oct 27, 2026
91dd605
chore(linux-egui): 2.0.2-Beta.3-150
aeoform Oct 27, 2026
ea78e87
feat(linux-egui): 同步选区助手(QA 面板)前端重写
aeoform Oct 27, 2026
43990c3
Merge remote-tracking branch 'origin/beta' into feat/egui-update-check
aeoform Nov 2, 2026
ea4c592
chore(linux-egui): 合并 beta 后重生成 i18n 目录(1142 键)
aeoform Nov 2, 2026
dc58594
fix(linux-egui): 钥匙串锁定时不再挂死,并给出可点的「解锁钥匙串」
aeoform Nov 2, 2026
2d68460
chore(linux-egui): 删掉四个没有 UI 的 SettingsField 死开关
aeoform Nov 2, 2026
dff33d0
feat(linux-egui): 八种界面语言 + 繁简/输出语言设置
aeoform Nov 2, 2026
4ac11a6
chore(linux-egui): 语言名按 Tauri 目录同步(Español/Français/Deutsch)
aeoform Nov 2, 2026
8755704
chore(linux-egui): 2.0.2-Beta.3-153
aeoform Nov 2, 2026
fb333fe
fix(linux-egui): 胶囊电平不再「太平」——自适应量程 + 逐帧缓动
aeoform Nov 2, 2026
5183a8d
feat(linux-egui): 选区助手改成两段式——先弹语音输入框,有内容再长成面板
aeoform Nov 4, 2026
6f908fd
fix(linux-egui): 紧凑形态把输入框挤没了——重排小窗布局
aeoform Nov 4, 2026
75fcfab
fix(linux-egui): 选区助手按 Tauri 真实几何重做(480×80 → 760×416,贴底居中)
aeoform Nov 4, 2026
adbeb6e
fix(linux-egui): 紧凑态收敛成一条输入行(480×80,跟 Tauri 同高)
aeoform Nov 4, 2026
5875fd6
fix(linux-egui): 润色预览真的可编辑 + 尺寸判据改用真实窗口
aeoform Nov 4, 2026
cd866d4
fix(linux-egui): 润色预览卡片按 Tauri 收窄到 560,标题行合成一行
aeoform Nov 4, 2026
0fda0fa
feat(linux-egui): 语音提问先弹药丸,答案回来再展开成面板
aeoform Nov 4, 2026
e7657ef
feat(linux-egui): 选区润色也有了药丸阶段(先 thinking,再长成面板)
aeoform Nov 4, 2026
970f7ed
fix(fcitx5): 焦点不在 IME 上下文时用 PRIMARY 兜底抓选区(选区润色才弹得出面板)
aeoform Nov 4, 2026
8a04653
fix(linux-egui): 宿主侧 PRIMARY 兜底抓选区(插件拿不到时也能弹出面板)
aeoform Nov 4, 2026
ff0f3d3
fix(linux-egui): 打包脚本现编 fcitx5 插件 + 插件改从 fcitx 缓存读选区
aeoform Nov 4, 2026
c50c79d
refactor(fcitx5): 选区只走输入法一条路——直接问 clipboard addon 要 PRIMARY
aeoform Nov 4, 2026
62ab28c
feat(linux-egui): 直接替换模式补一条胶囊确认(不再「按了没反应」)
aeoform Nov 4, 2026
f20b397
Revert "feat(linux-egui): 直接替换模式补一条胶囊确认(不再「按了没反应」)"
aeoform Nov 4, 2026
8c159d1
style(linux-egui): 润色面板按 Tauri 的 qa-panel.css 对齐
aeoform Nov 4, 2026
f6b9be1
style(linux-egui): 对话面板按 mpv-shot0002(Tauri 提问面板)重排
aeoform Nov 4, 2026
a27400f
feat(linux-web): GTK + WebKitGTK 宿主跑通官方 React(桥 + 静态服务 + 首屏)
aeoform Nov 9, 2026
2d28f44
merge: 同步 origin/beta(93 个提交)
aeoform Nov 10, 2026
9b184ab
feat(linux-web): 接上真实后端(openless-core 装配)+ 首批真实命令
aeoform Nov 10, 2026
538eaa1
feat(linux-web): 宿主支持「只换窗口」——OPENLESS_WEB_UI=1 时拉起 Web 窗口
aeoform Nov 10, 2026
5c7e039
feat(linux-web): 自带宿主能力——单实例 + 托盘(复用既有 StatusNotifierItem)
aeoform Nov 10, 2026
e292b4d
fix(linux-web): 单实例锁成功时也打日志(排障时能区分「没跑」与「已占用」)
aeoform Nov 10, 2026
7c49aa8
fix(web): GTK 宿主不再画 macOS 标题栏(顶部那行空白是交通灯避让位)
aeoform Nov 10, 2026
82179cc
feat(linux-web): 后端事件桥(前端 27 个 listen() 的通道)
aeoform Nov 10, 2026
6f8491b
feat(linux-web): 概览页所需命令接真后端(list_history / get_activity_stats / 提供商描述)
aeoform Nov 10, 2026
8de73f1
feat(linux-web): 接上全局热键(听写起停 / QA 唤出窗口)
aeoform Nov 10, 2026
978bb5a
feat(linux-web): 设置写回(update_setting_fields / set_settings)
aeoform Nov 10, 2026
1f0e024
feat(linux-web): 渠道命令(list / create / delete / set_enabled)
aeoform Nov 10, 2026
4e747ae
feat(core): 凭据账号映射下沉到 core;linux-web 接上 read/set_credential
aeoform Nov 10, 2026
4ca78c4
feat(linux-web): validate_provider_credentials(渠道连通性校验)
aeoform Nov 10, 2026
33e4767
docs(linux-web): 命令面移植清单(180/184 已有 Tauri 实现,附模板与顺序)
aeoform Nov 10, 2026
607cd3b
feat(linux-web): 词库与纠错规则命令(13 条)
aeoform Nov 10, 2026
f5e7e65
feat(linux-web): 风格包命令(9 条)
aeoform Nov 10, 2026
324fe23
feat(linux-web): 听写/录音命令(5 条)
aeoform Nov 10, 2026
d80f400
feat(linux-web): 热键设置命令(7 条)
aeoform Nov 10, 2026
8862bb7
docs(linux-web): 记录云同步命令组的同步/异步混用与分支收敛约定
aeoform Nov 10, 2026
3243ce1
feat(linux-web): 云同步命令(22 条)
aeoform Nov 10, 2026
4de614c
feat(linux-web): 杂项命令(6 条)
aeoform Nov 10, 2026
6d9b08b
feat(linux-web): 录音回放与重新转录(2 条)
aeoform Nov 10, 2026
a9a509d
feat(linux-web): 服务用量与自定义组合键(3 条)
aeoform Nov 10, 2026
b78d739
feat(linux-web): 录音胶囊窗口(layer-shell,`--features capsule` 开启)
aeoform Nov 10, 2026
7244aa2
fix(linux-web): 胶囊电平改用真实字段,修正 layer-shell 调用
aeoform Nov 10, 2026
3c708ff
perf(linux-web): GTK 宿主改用纯透明度切页,并补帧探针
aeoform Nov 10, 2026
71ced71
perf(linux-web): GTK 宿主切页改为瞬时切换(抖动已修)
aeoform Nov 10, 2026
368493c
feat(linux-web): 风格包激活 / 读图标 / 辅助功能授权(3 条接线)
aeoform Nov 10, 2026
6c7deb3
feat(linux-web): 组合键校验与恢复应用(补齐最后两条)
aeoform Nov 10, 2026
476b15f
docs(linux-web): 命令缺口清单(141 条,按域分组)
aeoform Nov 10, 2026
4aeae13
feat(linux-web): 历史/词表/风格包/频道变更(11 条)
aeoform Nov 10, 2026
e5c4239
feat(linux-web): 偏好类与纯搬运命令(10 条)
aeoform Nov 10, 2026
5084d66
feat(linux-web): 云同步上传/学习词/麦克风/远程输入(7 条)
aeoform Nov 10, 2026
644a7b1
feat(linux-web): 更新检查与当前频道选择(5 条)
aeoform Nov 10, 2026
0b8dddb
feat(linux-web): 重新润色 / 热键状态 / 引导完成 / 电平监视(6 条)
aeoform Nov 10, 2026
9eaa491
feat(linux-web): QA / 胶囊窗口级命令(15 条)
aeoform Nov 10, 2026
0b8200d
feat(linux-web): get_hotkey_capability;固化剩余命令的处置结论
aeoform Nov 10, 2026
5566d4a
build(linux-web): 打包脚本(deb + rpm)
aeoform Nov 10, 2026
4247e03
fix(linux-web): 设置浮层抖动、恢复切页淡入、字体栈、市场与 GitHub 登录
aeoform Nov 10, 2026
287c6b1
docs(linux): 渲染引擎选型实测(Tauri=WebKitGTK;Qt6 WebEngine spike 通过)
aeoform Nov 10, 2026
4ac1eb6
feat(frontend): 预览模式(?mock=1)+ GTK 桥按运行时存在性判定
aeoform Nov 10, 2026
e9a4f84
feat(linux): HTTP 命令桥 + Qt 宿主原型
aeoform Nov 10, 2026
79d99d3
feat(linux-qt): Qt6 宿主打包(deb)+ LGPLv3 合规
aeoform Nov 11, 2026
66b8fc2
fix(linux-qt): 浮层终于能显示——软件渲染 + layer-shell 组合
aeoform Nov 11, 2026
d6bfd48
fix(linux): 快捷键/录音整条链路原来是死的
aeoform Nov 11, 2026
309e741
feat(linux): 云同步在 Linux 上真正可用了
aeoform Nov 11, 2026
88b80f5
fix(linux-web): 修白屏——事件总线与桥的循环依赖
aeoform Nov 11, 2026
3b5fb63
fix(linux-qt): 复制走宿主剪贴板;外链交给系统浏览器
aeoform Nov 11, 2026
40096a7
chore(linux): 复制默认走插件 + 命令错误进 journal
aeoform Nov 11, 2026
8cb89a8
fix(linux): 浏览器改走宿主通道;插件换 setClipboardV2;补两条「概念不存在」命令
aeoform Nov 11, 2026
7b51c3a
fix(linux-qt): 复制 = 宿主写入 + 插件通知(并查明真正的阻塞者)
aeoform Nov 11, 2026
6b54631
debug(linux): 记录所有命令调用;E2EE 状态冷启动预热
aeoform Nov 11, 2026
2c69f33
fix(linux): 冷启动恢复云同步会话;托盘「打开」唤不回主窗口
aeoform Nov 11, 2026
bf9b8c5
fix(linux): GitHub 登录轮询空转——设备流字段名对不上
aeoform Nov 11, 2026
1a9809f
fix(linux-qt): 退出时不再崩溃(跳过 QtWebEngine 析构)
aeoform Nov 11, 2026
f0bd998
debug(linux-qt): 把前端吞掉的错误打到宿主日志
aeoform Nov 11, 2026
6cdce7e
fix(linux): 云同步在 Linux 宿主上真正可点——三处「只认 Tauri」的门控
aeoform Nov 11, 2026
67ceb7c
fix(linux): 恢复云端配置失败——缺少 RestoreRuntimeEffects 绑定
aeoform Nov 11, 2026
432d080
fix(linux): 恢复效果必须在 backend.start() 之前绑定
aeoform Nov 11, 2026
143591a
fix(linux): GitHub 重新登录后云同步仍显示「请重新登录」
aeoform Nov 11, 2026
a26f777
fix(linux): status 里做网络请求把 UI 拖死
aeoform Nov 11, 2026
b85819b
fix(linux): 云同步状态轮询风暴(12 分钟 1.8 万次)
aeoform Nov 11, 2026
7e87baf
fix(linux): 登录流程两个坑(取消后无法重新发起 / 重连抢跑)
aeoform Nov 11, 2026
fd59a0e
fix(linux): 我自己把「登录后立刻登出」写进了代码
aeoform Nov 11, 2026
457487d
align(linux): 按 Tauri 的启动顺序逐项对齐
aeoform Nov 15, 2026
d871cf7
fix(linux): 恢复在最后一步回滚(sync_restore_rolled_back)
aeoform Nov 15, 2026
95cde9a
fix(linux): 恢复回滚的真凶——渠道 configuration 没有往返
aeoform Nov 15, 2026
4382596
fix(linux): 恢复回滚的真正原因——Omni 渠道在本地没有存储
aeoform Nov 15, 2026
5541f2c
fix(linux): 恢复完成后又要求登录——replace 把 GitHub token 弄丢了
aeoform Nov 15, 2026
7c71db9
fix(linux): 多模态(Omni)密钥读不出来
aeoform Nov 15, 2026
71482ef
feat(linux): 补回丢失的 es/fr/de 三种语言
aeoform Nov 15, 2026
b5f7c50
refactor(linux): 删除 egui,Linux 只剩 Qt/WebKit 宿主
aeoform Nov 15, 2026
13aa073
fix(linux): RPM %files 不再声明系统目录、装包不再顶掉 IBus,并彻底去掉 GTK/WebKit
aeoform Nov 15, 2026
8723d9b
refactor(linux): 界面文案只在 React 里,删掉 13k 行的生成目录与同步脚本
aeoform Nov 15, 2026
b21baf1
fix(linux): 界面不再把 Linux 当成 Windows,本地模型/剪贴板/IME 设置真正隐藏
aeoform Nov 15, 2026
aeffc91
feat(linux): 恢复被藏掉的设置项,能做的做掉,做不了的置灰标「即将支持」
aeoform Nov 15, 2026
eaa85a7
feat(linux): 选区助手接上后端,快捷键→润色→替换整条链跑通
aeoform Nov 15, 2026
f3af9b2
chore(merge): 合并 beta(收敛后的 CI/发行 + 六平台文档),Linux 链路按新结构调整
aeoform Nov 15, 2026
d2b8d19
test: 对齐合并后的 CI/契约断言(Linux 恢复、Windows 前端独立作业、宿主事件总线)
aeoform Nov 15, 2026
fc8bfce
chore(linux): 版本 212(合并 beta 后重新打包)
aeoform Nov 15, 2026
0453883
chore: 重新触发 PR 检查
aeoform Nov 15, 2026
817cfac
fix(linux): fcitx5 插件按版本挑 setClipboard 签名(Ubuntu 24.04 只有老 API)
aeoform Nov 15, 2026
c6d8a01
fix(linux): 选区契约测试与 clipboard-only 读取模型对齐(CI 上编不过/跑不过)
aeoform Nov 15, 2026
4531598
refactor: 彻底删除 egui(原生胶囊渲染器 + 协议 crate + 低内存模式)
aeoform Nov 15, 2026
50848bd
fix(desktop): 去掉 native 胶囊删除后遗留的字段引用(Windows MSRV 检查报 E0609)
aeoform Nov 15, 2026
69f2c45
fix(desktop): 修复删除原生胶囊时留下的空 cfg 块(Windows/macOS 编译报 expected statemen…
aeoform Nov 15, 2026
fec5dc4
ci(linux): 安装 qt6-declarative-dev(QQuickWindow 头文件,QtWebEngine 的软件渲染路…
aeoform Nov 15, 2026
a374d6d
ci(linux): 用 pkg-config cflags 编译 Qt 宿主;钥匙串相关回归测试在无 Secret Service 时跳过
aeoform Nov 15, 2026
4deafb1
ci(linux): LayerShellQt 的 pkg-config 兜底;public-surface 检查改指 linux-web…
aeoform Nov 15, 2026
ef7e382
fix(linux-qt): 兼容 Ubuntu 24.04 的 Qt 6.4(requestBody / FetchApiAllowed…
aeoform Nov 15, 2026
9df68d7
ci(linux): public-surface 检查改为锁住新的 HTTP 桥与命令面(旧的 reducer/replay 随自绘宿主…
aeoform Nov 15, 2026
0325855
ci(linux): public-surface 的凭据命令名对齐前端(delete_channel 取代 remove_credent…
aeoform Nov 15, 2026
e8167f3
fix(settings): 低延迟/语音唤醒只在 Windows 与 Linux 出现(macOS 保持原样),修 Android 的 …
aeoform Nov 15, 2026
4596b2b
chore(linux): 版本 214(egui 删除后重新打包)
aeoform Nov 15, 2026
b582d73
docs: 清除仓库里最后一批 egui/eframe 字样(README/USAGE/RELEASING/docs 全部指向 Qt6 宿…
aeoform Nov 15, 2026
ecb3cbc
chore(merge): 同步 beta(Windows 学词卡片位置、OSS 上传中止修复、设置项清理)
aeoform Nov 17, 2026
3762c01
ci: Linux 的 CI 与发版并进公共工作流,不再单独占文件
aeoform Nov 17, 2026
1617307
ci(linux): 本地 composite action 需要调用方先 checkout(CI 里补上,发版按 tag checkout)
aeoform Nov 17, 2026
7e1d1d9
feat(linux): 单实例锁(点多次图标不再多开);删除 Linux 相关文档
aeoform Nov 17, 2026
2abe938
fix(linux): 后端随宿主退出,并自动回收孤儿后端(修「点图标起不来」)
aeoform Nov 17, 2026
727d001
fix(linux-qt): 任务栏/窗口显示 OpenLess 图标(app_id 与 .desktop 对齐)
aeoform Nov 17, 2026
26be49a
fix(linux-qt): 打包时自己编译窗口层(图标修复上次没进包);包名去掉 Qt
aeoform Nov 17, 2026
2b58439
fix(linux): 托盘改回 Rust 实现,菜单与 macOS/Windows 对齐
aeoform Nov 17, 2026
7f9e66f
fix(linux): 单实例改用 flock 原子锁(并发启动不再出现两个托盘)
aeoform Nov 17, 2026
3dd3b19
feat(linux): 补齐诊断页两个按钮(导出日志 / 探测光标上下文)
aeoform Nov 17, 2026
b0bd663
feat(linux): 选区读取增强 + 选区润色预览/确认/撤销 + 麦克风热插拔
aeoform Nov 17, 2026
fb3defc
perf(linux): host action 与设备热插拔都改成事件驱动,去掉定时轮询
aeoform Nov 17, 2026
259f08f
feat(linux): 用输入法权限读取选区——surrounding 优先,必要时让应用自己复制
aeoform Nov 18, 2026
11f186a
Merge beta and integrate Linux with the shared React runtime
aeoform Nov 18, 2026
98ba691
Fix Linux packaging and shared frontend CI regressions
aeoform Nov 18, 2026
91feb5f
Merge remote-tracking branch 'origin/beta' into feat/linux-qt-host
aeoform Nov 19, 2026
0cbd0a3
Align Linux frontend events and start hotkey capture earlier
aeoform Nov 19, 2026
9737d01
Add selection-only voice editing to the Linux host
aeoform Nov 19, 2026
f1195a9
Wire Linux microphone hotplug and XDG autostart to shared settings
aeoform Nov 19, 2026
62e7e75
Complete Linux shortcut routing, startup checks and input settings
aeoform Nov 19, 2026
ea024c7
Bump Linux package revision to 228
aeoform Nov 19, 2026
9e54809
Rebuild the Linux backend inside the package script
aeoform Nov 19, 2026
9e2d477
Fill in Linux settings commands missing after the React refactor
aeoform Nov 19, 2026
d85fc19
Merge latest beta into Linux Qt host; adapt archive, settings and CI …
aeoform Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 2 additions & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
*.yml text eol=lf
*.desktop text eol=lf
*.xml text eol=lf
openless-all/app/linux-egui/packaging/AppRun text eol=lf
openless-all/app/linux-egui/packaging/openless-desktop-integration text eol=lf
openless-all/app/linux-host/packaging/openless.desktop text eol=lf
openless-all/app/linux-host/packaging/top.openless.OpenLess.metainfo.xml text eol=lf
# Keep imported model bytes and unified-diff context markers intact.
*.mcy binary
openless-all/app/scripts/micyou-dsp.patch text eol=lf whitespace=-blank-at-eol
Expand Down
139 changes: 139 additions & 0 deletions .github/actions/build-linux-packages/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
name: Build Linux packages
description: >
Compile the Qt6 WebEngine host, the Rust backend and the React bundle, then
produce verified deb/rpm artifacts. Shared by CI and the release workflow so
the two cannot drift: exactly one definition of "how a Linux package is built".

inputs:
revision-file:
description: File holding the release revision used in the package version.
required: false
default: openless-all/app/linux-host/package-revision

outputs:
version:
description: Package version (application version plus the -N revision).
value: ${{ steps.version.outputs.version }}
package-dir:
description: Absolute directory holding the deb/rpm and SHA256SUMS.
value: ${{ github.workspace }}/openless-all/app/target/linux-host-packages

runs:
using: composite
steps:
- name: Install native build and packaging dependencies
uses: ./.github/actions/setup-linux-dependencies

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy

- uses: actions/setup-node@v4
with:
node-version: '22'

- name: Resolve package version
id: version
shell: bash
working-directory: openless-all/app
env:
REVISION_FILE: ${{ inputs.revision-file }}
run: |
set -euo pipefail
VERSION=$(node -p "require('./package.json').version")
REVISION=$(< "$REVISION_FILE")
[[ "$REVISION" =~ ^[1-9][0-9]*$ ]] || {
echo "::error::$REVISION_FILE must hold a positive integer revision (got '$REVISION')"
exit 1
}
echo "version=${VERSION%%+*}-$REVISION" >> "$GITHUB_OUTPUT"

- uses: swatinem/rust-cache@v2
with:
# Release-profile cache, separate from the test-profile one in `linux-check`.
shared-key: build-linux-host
workspaces: openless-all/app -> target
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/beta' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}

- name: Build the fcitx5 plugin
# 包内要装 `libopenless.so` + `openless.conf`;断言与 ctest 在 `linux-check` 里跑。
working-directory: openless-all/app/scripts/linux-fcitx5-plugin
shell: bash
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel

- name: Validate Linux desktop metadata
shell: bash
run: |
desktop-file-validate openless-all/app/linux-host/packaging/openless.desktop
appstreamcli validate --no-net openless-all/app/linux-host/packaging/top.openless.OpenLess.metainfo.xml

- name: Build the Rust backend
working-directory: openless-all/app
shell: bash
run: cargo build --locked --release -p openless-linux-host -p openless-linux-web

- name: Install Qt6 WebEngine toolchain
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y --no-install-recommends \
qt6-base-dev qt6-declarative-dev qt6-webengine-dev \
liblayershellqtinterface-dev qt6-wayland-dev \
libqt6webenginewidgets6 libqt6webenginecore6

# 窗口层的编译放在 `scripts/package-linux-qt.sh` 里:打包脚本自己检查
# `main.cpp` 是否比 `linux-qt/openless-qt` 新,旧了就重编。这样 CI 与本地
# 只有一条编译路径,也不会再把旧二进制打进包(图标那次就是这么丢的)。

- name: Build the React frontend bundle
working-directory: openless-all/app
shell: bash
run: |
set -euo pipefail
# dist/ 不入库:包里的界面必须现场构建,否则会拿旧 bundle 打出
# 「代码改了但界面没变」的包(本地踩过:dist 落后 4 天,能力屏蔽整段没生效)。
npm ci --prefer-offline --no-audit --no-fund
VITE_OPENLESS_PLATFORM=gtk npx vite build --outDir linux-web/dist --emptyOutDir

- name: Package deb and rpm
# This also rebuilds Rust so local packaging cannot reuse a stale cache.
working-directory: openless-all/app
shell: bash
env:
OPENLESS_LINUX_VERSION: ${{ steps.version.outputs.version }}
OPENLESS_LINUX_ARCH: x86_64
run: |
# CI runners are disposable; ignore outputs restored by a cache.
rm -f target/linux-host-packages/*.deb target/linux-host-packages/*.rpm \
target/linux-host-packages/SHA256SUMS
bash scripts/package-linux-qt.sh

- name: Checksums and package verification
working-directory: openless-all/app
shell: bash
run: |
set -euo pipefail
OUTPUT=target/linux-host-packages
( cd "$OUTPUT" && sha256sum ./*.deb ./*.rpm > SHA256SUMS )
# 桌面与 Android 资产各有自己的 SHA256SUMS,Linux 这份换个名字。
cp "$OUTPUT/SHA256SUMS" "$OUTPUT/SHA256SUMS-linux"
bash scripts/verify-linux-host-packages.sh

- name: Stage direct download aliases
working-directory: openless-all/app
shell: bash
run: |
set -euo pipefail
output=target/linux-host-packages
alias_dir="$RUNNER_TEMP/openless-linux-host-direct-download"
rm -rf "$alias_dir"
mkdir -p "$alias_dir"
debs=("$output"/OpenLess-Linux-*.deb)
rpms=("$output"/OpenLess-Linux-*.rpm)
test "${#debs[@]}" -eq 1
test "${#rpms[@]}" -eq 1
cp "${debs[0]}" "$alias_dir/OpenLess_linux_x86_64.deb"
cp "${rpms[0]}" "$alias_dir/OpenLess_linux_x86_64.rpm"
117 changes: 116 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ jobs:
desktop-only: ${{ steps.detect.outputs.desktop-only }}
tauri: ${{ steps.detect.outputs.tauri }}
msrv: ${{ steps.detect.outputs.msrv }}
linux: ${{ steps.detect.outputs.linux }}
harmony: ${{ steps.detect.outputs.harmony }}
frontend: ${{ steps.detect.outputs.frontend }}
android: ${{ steps.detect.outputs.android }}
Expand All @@ -81,7 +82,7 @@ jobs:
run: |
set -euo pipefail
echo "desktop-only=$DESKTOP_ONLY" | tee -a "$GITHUB_OUTPUT"
for area in tauri msrv harmony frontend android capsule ios-device; do
for area in tauri msrv linux harmony frontend android capsule ios-device; do
verdict=$(bash scripts/ci-changed-areas.sh "$area" "$BASE_SHA")
# 失败即运行:脚本读不到差异时返回 true,这里也只接受明确的 false。
decision=$( [ "$verdict" = 'false' ] && echo false || echo true )
Expand Down Expand Up @@ -793,6 +794,120 @@ jobs:
- run: cargo test --locked -p openless-capsule --features ui,host
- run: cargo clippy --locked -p openless-native-capsule -p openless-capsule --features openless-capsule/ui,openless-capsule/host -- -D warnings

linux-check:
needs: [changes]
if: needs.changes.outputs.linux != 'false'
name: Linux checks
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
CARGO_PROFILE_DEV_DEBUG: 0
CARGO_PROFILE_TEST_DEBUG: 0
CARGO_TARGET_DIR: ${{ github.workspace }}/openless-all/app/target
steps:
- uses: actions/checkout@v6
with:
submodules: false

- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: actions/setup-node@v4
with:
node-version: '22'

- name: Install native build and test dependencies
timeout-minutes: 10
uses: ./.github/actions/setup-linux-dependencies

- uses: swatinem/rust-cache@v2
with:
shared-key: test-linux-host
workspaces: |
openless-all/app -> target
openless-all/app/src-tauri/backend-tests -> ../../target
cache-on-failure: true
save-if: ${{ github.ref == 'refs/heads/beta' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') }}

- name: Build and test fcitx5 plugin
working-directory: openless-all/app/scripts/linux-fcitx5-plugin
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
cmake --build build --parallel
ctest --test-dir build --output-on-failure
test -s build/libopenless.so
test -s build/openless.conf

- name: Test Core, Linux host, and platform boundaries
timeout-minutes: 40
working-directory: openless-all/app
run: |
set -euo pipefail
cargo test --locked -p openless-core
# 命名化重跑热键边沿门禁:上面的 cargo test 已经编好,这里几乎免费,
# 改名会在这里响,而不是悄悄丢掉门禁。
cargo test --locked -p openless-core --lib \
api::tests::shared_hotkey_edges_own_hold_auto_and_combo_abort_semantics -- --exact \
| tee "$RUNNER_TEMP/openless-hotkey-edge.log"
grep -Fq 'test api::tests::shared_hotkey_edges_own_hold_auto_and_combo_abort_semantics ... ok' \
"$RUNNER_TEMP/openless-hotkey-edge.log"
cargo test --locked -p openless-harmony-host
cargo clippy --locked -p openless-core --all-targets -- -D warnings
cargo test --locked -p openless-linux-host --all-targets
cargo clippy --locked -p openless-linux-host --all-targets -- -D warnings
node scripts/linux-host-tauri-free-contract.test.mjs
node scripts/linux-host-release-contract.test.mjs
node scripts/ci-changed-areas.test.mjs
node scripts/ci-cache-usage.test.mjs
node scripts/ci-cache-sharing.test.mjs
node scripts/harmony-release-contract.test.mjs
node scripts/tauri-linux-free-contract.test.mjs
pwsh -NoProfile -File ./scripts/check-core-deps.ps1
pwsh -NoProfile -File ./scripts/check-core-deps.ps1 openless-linux-host
pwsh -NoProfile -File ./scripts/check-core-secret-surface.ps1
pwsh -NoProfile -File ./scripts/check-core-test-isolation.ps1
pwsh -NoProfile -File ./scripts/check-core-runtime-seam.ps1
pwsh -NoProfile -File ./scripts/check-linux-public-surface.ps1

- name: Test remote input TLS identity and Unix key permissions
timeout-minutes: 20
working-directory: openless-all/app
run: cargo test --locked --manifest-path src-tauri/backend-tests/Cargo.toml --test remote_tls

linux-package:
needs: [changes]
if: needs.changes.outputs.linux != 'false'
name: Linux packages
# PipeWire/libspa 需要 24.04;包目标 glibc >= 2.39。
runs-on: ubuntu-24.04
timeout-minutes: 90
steps:
- uses: actions/checkout@v6
with:
submodules: false

- name: Build verified deb/rpm
uses: ./.github/actions/build-linux-packages

- name: Upload verified packages
# push 构建只用来暖缓存,不产资产;PR 与 tag 构建才是消费者。
if: github.event_name != 'push'
uses: actions/upload-artifact@v7
with:
retention-days: 14
name: openless-linux-host-x86_64
path: openless-all/app/target/linux-host-packages/*
if-no-files-found: error

- name: Upload direct download aliases
if: github.event_name != 'push'
uses: actions/upload-artifact@v7
with:
retention-days: 14
name: openless-linux-host-direct-download
path: ${{ runner.temp }}/openless-linux-host-direct-download/*
if-no-files-found: error

cross-platform:
needs: [changes]
# 失败即运行:只有判定脚本明确说“够不到”才跳过。
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-harmony.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ jobs:
# AppGallery needs a numeric versionName, so the packaging script keeps
# only the numeric prefix ("2.0.2", not "2.0.2-Beta.1").
version_name=$(node -p "require('./package.json').version" | sed 's/[-+].*//')
version_code=$(cat linux-egui/package-revision)
version_code=$(cat linux-host/package-revision)
toolchain="${OPENLESS_HARMONY_TOOLCHAIN:-$HOME/.local/share/harmony/current}"
# The Release only carries the unsigned package; the store copy must
# additionally prove its signature.
Expand Down
65 changes: 64 additions & 1 deletion .github/workflows/release-tauri.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Release (all platforms)
#
# Outputs:
# macOS arm64/x64 .dmg + Windows x64 .msi/.exe, uploaded automatically as GitHub Release assets.
# Linux egui CI/release is paused; local build/package scripts remain available.
# Linux is a job in this file (`linux`), gated on recorded device acceptance.
#
# macOS distribution:
# - With APPLE_CERTIFICATE / APPLE_CERTIFICATE_PASSWORD / APPLE_ID /
Expand Down Expand Up @@ -1059,3 +1059,66 @@ jobs:
publish: true
upload_to_appgallery: true
secrets: inherit

linux:
# Linux 包(Qt6 WebEngine 宿主 + openless-linux-web 后端)与桌面在同一个
# 工作流里发布:构建 + 校验用 CI 那份 composite action,发布前要求该 tag 有
# 真机验收记录(LINUX_ACCEPTED_RELEASE_TAG),否则整步跳过、不影响桌面/Android。
name: Linux packages
needs: prepare-release
if: >-
github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') &&
endsWith(github.ref_name, '-tauri') &&
vars.LINUX_ACCEPTED_RELEASE_TAG == github.ref_name
runs-on: ubuntu-24.04
timeout-minutes: 90
permissions:
contents: write
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
RELEASE_TAG: ${{ github.ref_name }}
LINUX_ACCEPTED_RELEASE_TAG: ${{ vars.LINUX_ACCEPTED_RELEASE_TAG }}
steps:
- name: Verify exact-tag Linux acceptance
run: |
set -euo pipefail
if [ -z "$RELEASE_TAG" ] || [ "$LINUX_ACCEPTED_RELEASE_TAG" != "$RELEASE_TAG" ]; then
echo "::error::Linux device acceptance must be recorded for this exact release tag before publication."
exit 1
fi
- uses: actions/checkout@v6
with:
submodules: false
ref: ${{ github.ref_name }}
- name: Build verified deb/rpm
uses: ./.github/actions/build-linux-packages
- name: Attach Linux packages to the GitHub Release
run: |
set -euo pipefail
output=openless-all/app/target/linux-host-packages
alias_dir="$RUNNER_TEMP/openless-linux-host-direct-download"
for file in "$output"/OpenLess-Linux-*.deb "$output"/OpenLess-Linux-*.rpm \
"$output/SHA256SUMS-linux" "$alias_dir/OpenLess_linux_x86_64.deb" \
"$alias_dir/OpenLess_linux_x86_64.rpm"; do
[ -s "$file" ] || { echo "::error::missing Linux release asset $file"; exit 1; }
done
# 桌面作业先创建 Release,这里只等不抢。
for attempt in $(seq 1 40); do
if gh release view "$RELEASE_TAG" --json isDraft > /dev/null 2>&1; then
break
fi
if [ "$attempt" = 40 ]; then
echo "::error::release $RELEASE_TAG was not created by the desktop workflow"
exit 1
fi
sleep 15
done
gh release upload "$RELEASE_TAG" \
"$output"/OpenLess-Linux-*.deb \
"$output"/OpenLess-Linux-*.rpm \
"$output/SHA256SUMS-linux" \
"$alias_dir/OpenLess_linux_x86_64.deb" \
"$alias_dir/OpenLess_linux_x86_64.rpm" \
--clobber
echo "attached Linux assets to $RELEASE_TAG"
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ flowchart LR
end

subgraph OTHER[Other platform hosts]
LINUX[Linux egui host\nOpenLessBackend / native UI]
LINUX[Linux Linux host host\nOpenLessBackend / native UI]
ANDROID[Android native services\nJNI / Kotlin / IME]
HARMONY[HarmonyOS host\nArkTS / Rust bridge]
LINUX --> CORE
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ flowchart LR
end

subgraph OTHER[其他平台宿主]
LINUX[Linux egui 宿主\nOpenLessBackend / 原生界面]
LINUX[Linux Linux host 宿主\nOpenLessBackend / 原生界面]
ANDROID[Android 原生服务\nJNI / Kotlin / 输入法]
HARMONY[HarmonyOS 宿主\nArkTS / Rust 桥接]
LINUX --> CORE
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading