[codex] bootstrap Linux AppImage adaptation baseline#8
Draft
LittleFool1022 wants to merge 1 commit into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
合并意见
这份提交不是想声明 Kivio 已经具备通用 Linux x86_64 AppImage 发布能力,也不希望以“完整 Linux 支持”作为合并前提。
它更像是一份本机 Linux 针对性移植基线:在 Ubuntu 22.04.5 / X11 环境下,把当前能落地的 Linux 编译、运行、打包、能力边界和验证证据整理成一个可 review、可继续拆分的起点。若主线暂不适合直接采纳,也希望它能帮助项目尽快开始 Linux 版本适配讨论。
改进概要
kivio-code的 bundled skills 路径解析。适配详情
本次适配重点不是“一步到位支持所有 Linux 桌面环境”,而是先让 Linux 路径变得可编译、可打包、可观测、可继续演进。
已处理内容包括:
tauri.linux.conf.json:Linux 默认 bundle target 指向 AppImage。release.yml:workflow_dispatch 增加linux/all,Linux runner 使用ubuntu-22.04并安装 WebKitGTK/AppIndicator/rsvg/patchelf 依赖。platform_capabilities.rs:向前端暴露 Linux 能力状态。capture_port.rs:Linux region/window capture 目前显式 unsupported。ocr_port.rs:Linux 保留 RapidOCR,System OCR 不伪装支持。Lens.tsx与 Settings:按能力状态展示 Linux 降级边界。lib.rs:Linux/X11 启动前调用XInitThreads(),并扩展桌面 smoke 输出。skills/discover.rs:支持 AppImage AppDir 的usr/bin到usr/lib/Kivio/skills路径解析。已验证环境
6.8.0-40-genericCtrl+Shift+Gsmoke:触发后出现 Kivio 窗口路径,未复现 xcb crash验证命令
ruby -e 'require "yaml"; YAML.load_file(".github/workflows/release.yml"); puts "release.yml YAML OK"'npm run typechecknpm testcargo test --manifest-path src-tauri/Cargo.tomlgit diff --check HEAD~1 HEAD当前 rebase 到
ZMGID/main后的结果:npm run typecheck:exit 0npm test:21 files passed,104 tests passedcargo test --manifest-path src-tauri/Cargo.toml:1142 passed,0 failed,9 ignoredrelease.yml YAML OKgit diff --check HEAD~1 HEAD:no output明确边界