Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ Viva 桌面端要在 macOS、Windows 和 Linux 上构建,Rust Core 和 Go 桌
- macOS 没有 Developer ID 证书时,AutoBuild 和 Desktop Release 显式调用 Viva 的临时签名(ad hoc)功能,并无条件校验完整 app bundle。只保留 Go 链接器生成的可执行文件签名,会漏掉 Info.plist 与资源封装,实际下载包报“code has no resources but signature indicates they must be present”;不能以“没有证书”为由跳过完整性校验。临时签名不提供 Apple 开发者身份或公证,Gatekeeper 仍可能拦截,下载说明必须如实说明;不能把临时签名包装成免提示分发。
- RPM 的运行依赖必须包含 Viva 通过 `dlopen` 打开的 Pango、Fontconfig、GObject 和 XCB 扩展库。它们不会出现在普通 ELF 动态依赖扫描中;固定的 Viva 打包器使用 `lib…so…()(64bit)` 共享库能力声明,让 RPM 系统选择对应提供者。不能只列 Vulkan/XCB/Cairo 后假定文字库总已安装,也不能在宿主解包改写 RPM 元数据。GTK、输入法、WebKit 等可选集成不作为所有应用的强制依赖。
- Desktop Release 和 AutoBuild 必须共用 `scripts/ci/common/desktop-packages.mjs` 定义的构建矩阵、格式和下载文件名,不能各维护一套清单。macOS 两种芯片各提供 DMG/ZIP,Windows x64 提供 EXE/ZIP,Linux 两种架构各提供 DEB/RPM/tarball,共 12 个包和 12 个校验文件。两条流程在任何发布写操作前检查完整清单和 SHA-256,不能只检查“下载到的文件”而漏掉未生成的包。RPM 使用 Viva 已有的打包能力;正式发布另外用 rpm 工具检查内部摘要和版本/发行号/架构。它是 runner 上的验证工具,不进入安装包,不增加可复用资源路径。
- Desktop Release 的标签是 `desktop-v<version>`,发布说明的唯一文件却是 `docs/releases/v<version>.md`:两者用途不同,解析版本与上传 Release 必须按版本读取同一文件。不能另存一份带 `desktop-v` 前缀的副本来迁就读者,否则双语说明会漂移;离线解析回归只创建规范文件,缺失、空白或 manifest 版本不符时仍拒绝发布。
- 菜单无头测试先按 `gfx.RoleMenuItem` 角色过滤,再从菜单项中选择最深层;Linux/Windows 的窗口按钮可能比所有菜单层更高,不能直接把最高层的全部控件当作菜单。用合成的高层窗口按钮回归这个选择边界,保留原有远程目录、顺序与分支动作断言,不通过跳过平台或放宽预期让 CI 变绿。
- 只有 Node 脚本、没有外部依赖的工作流不为了打开 `cache` 而引入不存在的 lockfile;Bun 的真实依赖缓存保留。

Expand Down Expand Up @@ -65,6 +66,8 @@ Release 编译和打包会把反馈推迟到最慢的任务结束。Draft PR 和

## 验证

- `node --test scripts/ci/desktop-release/resolve-release-version.test.mjs`:纯版本与 desktop-v 标签都读取规范文件;缺失、无效说明及 manifest 不符均拒绝。

- `node --test scripts/ci/common/desktop-packages.test.mjs scripts/ci/desktop-release/package-release.test.mjs`:验证两条流程共用五个目标、12 个下载包,缺 Intel/RPM 或校验错误时拒绝发布,并用离线夹具验证 Linux 两种架构的正式打包与 RPM 元数据拒绝。

- `node --test scripts/ci/desktop-autobuild/package-autobuild.test.mjs`:离线验证 Linux 双架构 RPM 收集及校验和、macOS 临时签名选择和无效签名拒绝发布。
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/desktop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
scripts/desktop/perf/editor-perf-report.test.mjs \
scripts/ci/cancel-closed-pr-runs/cancel-closed-pr-runs.test.mjs \
scripts/ci/desktop-ci/verify-ci-gate.test.mjs
node --test --test-concurrency=1 scripts/ci/desktop-autobuild/package-autobuild.test.mjs scripts/ci/common/desktop-packages.test.mjs scripts/ci/desktop-release/package-release.test.mjs
node --test --test-concurrency=1 scripts/ci/desktop-autobuild/package-autobuild.test.mjs scripts/ci/common/desktop-packages.test.mjs scripts/ci/desktop-release/package-release.test.mjs scripts/ci/desktop-release/resolve-release-version.test.mjs

linux-test:
name: Vet and test on Linux
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/desktop-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
release_args=(
--repo "$GITHUB_REPOSITORY"
--title "Lithe Desktop $DESKTOP_VERSION"
--notes-file "docs/releases/$RELEASE_TAG.md"
--notes-file "docs/releases/v$DESKTOP_VERSION.md"
--prerelease
)
if ! gh release view "$RELEASE_TAG" --repo "$GITHUB_REPOSITORY" > /dev/null 2>&1; then
Expand Down
2 changes: 1 addition & 1 deletion docs/ci-builds.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ CI 构建缓存、架构并行、测试产物和 artifact 保留策略见
2. `build` 在 macOS arm64 与 x64(`macos-26`)、Windows x64(`windows-2022`)、Linux x64 和 arm64 上检出同一提交,运行 `scripts/ci/desktop-autobuild/package-autobuild.sh` 打包。macOS 有完整证书时使用 Developer ID 签名,否则使用 Viva 的临时签名(ad hoc)封装完整应用包,并在上传前校验签名。临时签名不等于 Apple 公证,首次打开仍可能被系统拦截;Windows 没有证书时保持未签名。每个平台只拿到自己的签名密钥。打包产物作为 artifact 保留 3 天。
3. `publish` 等全部平台构建成功后,检出 `github.workflow_sha`(工作流自身所在提交)中的 `scripts/ci/desktop-autobuild/publish-autobuild.sh`,把安装包发布到滚动预发布 `desktop-AutoBuild`。该 Release 始终是 prerelease,不会标记为 latest。并发组保证同一时间只有一次发布。

正式版由 `desktop-release.yml` 发布:推送 `desktop-v*.*.*` 标签,或手动运行并填写与 `desktop/viva.toml` 一致的版本。它打包并校验三个平台的产物后创建 prerelease,与 AutoBuild 的 Release 互不替换。
正式版由 `desktop-release.yml` 发布:推送 `desktop-v*.*.*` 标签,或手动运行并填写与 `desktop/viva.toml` 一致的版本。它打包并校验三个平台的产物后创建 prerelease,与 AutoBuild 的 Release 互不替换。 发布前必须先提交并校验 `docs/releases/v<version>.md`;版本解析器和发布步骤读取同一个文件,不能把 `desktop-v` 标签前缀当成发布说明文件名。正式包显示纯版本号,GitHub prerelease 标记仍用于隔离旧客户端的更新渠道。

合并修复后,可等待下一次定时任务,或由仓库所有者及 `LITHE_RELEASE_ACTOR` 中的授权发布者手动重新构建并发布:

Expand Down
139 changes: 139 additions & 0 deletions docs/releases/v0.7.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
## 中文

Lithe 0.7.0 带来全新的跨平台桌面客户端,将编辑、Git、插件、运行调试和 AI 工作台放在同一套界面中。新客户端以 **Lithe Desktop** 独立分发,可与旧版并存;旧客户端的功能迁移仍在进行。

### 下载

- [项目主页](https://github.com/1lck/Lithe-IDEA)
- [全部下载文件与 SHA-256 校验文件](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.7.0)

| 系统与芯片 | 下载格式 |
| --- | --- |
| macOS Apple Silicon | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-arm64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-arm64.zip) |
| macOS Intel | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-amd64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-amd64.zip) |
| Windows x64 | [安装程序](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-windows-amd64-setup.exe) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-windows-amd64.zip) |
| Linux x64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe_0.7.0_amd64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-1.x86_64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-linux-amd64.tar.gz) |
| Linux ARM64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe_0.7.0_arm64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-1.aarch64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-linux-arm64.tar.gz) |

### 重点更新

本次重点是新桌面客户端及其工作流,具体语言和构建工具的支持由插件提供。

#### ✨ 新功能

- 在统一工作台中使用项目树、文件标签、文件与符号搜索,以及编辑器导航和草稿恢复。
- 从插件市场或本地安装插件,查看权限、管理语言服务,并安装插件声明的缺失命令。
- 从插件提供的项目模板创建工程,在同一处查看构建任务、依赖、运行输出和调试会话。
- 在编辑器旁预览 Markdown、HTML、SVG、PDF 和图片,Markdown 标题可在结构窗口导航。
- 在 Git 工具窗口查看变更、差异、提交历史、分支、工作树和写操作控制台。
- 在工作台使用 Agent 对话、终端和上下文工具,并从右侧通知窗口集中查看消息。
- 查看应用及相关进程的内存、CPU 和 GPU 信息,并导入 VS Code 或 IDEA 快捷键。

#### ⚡ 改进

- 每次运行拥有独立输出标签,控制台可显示命令输出中的 ANSI 颜色。
- 项目树与滚动列表显示滚动条,Git 跟踪分支菜单按远端和目录逐级展开。
- 本地历史规则改为列表管理,新建项目的字段说明收进提示,高级字段出错时自动展开。
- 正式版本与每日自动构建均提供相同的五个系统/芯片组合、12 种下载包及校验文件。

#### 🛠 修复

- 修复已安装插件列表点选后总是选中最后一项的问题。
- 修复 macOS 包签名结构、Linux RPM 运行库声明和安装包缺少原生内核的问题。
- 修复升级界面框架后,新建项目分组标题和 Git 分页、控制台占位行可能触发的崩溃。
- 修复项目树行名字以外区域的右键菜单,并保留调试配置中的自定义参数和包目录工作目录。

### 升级说明

- macOS:选择对应芯片的 DMG,将 `Lithe Desktop.app` 拖入“应用程序”;ZIP 也包含同一应用。
- Homebrew:仓库当前的 `lithe` 配方仍指向旧版 0.6.7;安装本版请使用上面的 DMG,不要用 `brew upgrade --cask lithe` 获取 0.7.0。
- Windows:运行 x64 安装程序,或将 ZIP 解压到独立目录后运行 `lithe.exe`。
- Linux:优先使用对应架构的 DEB/RPM,让包管理器安装声明的依赖;tar.gz 用户需要自行满足运行库要求。
- 从 0.6.x 迁移:先保留旧版和数据备份,在新客户端打开项目、重新核对设置并安装兼容插件;不承诺完整自动迁移或旧插件直接兼容。
- 本次使用独立的 `desktop-v0.7.0` 发布标签;为保护旧客户端的更新渠道,GitHub 仍标为 prerelease,程序内显示 `0.7.0`。当前发布流程没有配置签名更新源,请手动下载安装。

### 兼容性与已知问题

- macOS 最低为 13.0;分别提供 Apple Silicon 与 Intel 包,没有合并为通用包。
- Windows 提供 x64 包;Linux 提供 x64 与 ARM64 包,需要兼容的系统运行库和图形环境,并未验证所有发行版。
- 新客户端的功能仍在迁移,构建与包校验通过不代表旧版功能已全部对齐或所有原生工作流已完成验收。
- macOS 使用临时签名,没有 Apple Developer ID 证书及公证;Windows 安装包没有发行者签名,系统可能显示安全提示。

如果 macOS 提示无法打开 `Lithe Desktop.app`,可在“系统设置 → 隐私与安全性”中选择“仍要打开”,或在“应用程序”中按住 Control 点按应用并选择“打开”。如果仍被阻止,可执行 `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`。旧版 `Lithe.app` 对应命令是 `xattr -dr com.apple.quarantine /Applications/Lithe.app`。仅对可信来源的应用使用。

[查看完整变更](https://github.com/1lck/Lithe-IDEA/compare/v0.6.7...desktop-v0.7.0)

---

## English

Lithe 0.7.0 introduces a new cross-platform desktop client with editing, Git, plugins, running, debugging and AI tools in one workbench. It ships separately as **Lithe Desktop**, alongside the older client; feature migration is still in progress.

### Downloads

- [Project homepage](https://github.com/1lck/Lithe-IDEA)
- [All downloads and SHA-256 checksums](https://github.com/1lck/Lithe-IDEA/releases/tag/desktop-v0.7.0)

| System and processor | Formats |
| --- | --- |
| macOS Apple Silicon | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-arm64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-arm64.zip) |
| macOS Intel | [DMG](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-amd64.dmg) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-darwin-amd64.zip) |
| Windows x64 | [Installer](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-windows-amd64-setup.exe) · [ZIP](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-windows-amd64.zip) |
| Linux x64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe_0.7.0_amd64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-1.x86_64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-linux-amd64.tar.gz) |
| Linux ARM64 | [DEB](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe_0.7.0_arm64.deb) · [RPM](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-1.aarch64.rpm) · [tar.gz](https://github.com/1lck/Lithe-IDEA/releases/download/desktop-v0.7.0/lithe-0.7.0-linux-arm64.tar.gz) |

### Highlights

This release focuses on the new desktop client and its workflows; plugins provide support for particular languages and build tools.

#### ✨ New features

- Use the project tree, file tabs, file and symbol search, editor navigation and draft recovery in one workbench.
- Install plugins from the marketplace or local files, inspect permissions, manage language services and install declared missing commands.
- Create projects from plugin templates and access build tasks, dependencies, run output and debug sessions in one place.
- Preview Markdown, HTML, SVG, PDF and images beside the editor, with Markdown headings available in the Structure window.
- Browse changes, diffs, commit history, branches, worktrees and the write-operation console in the Git window.
- Use Agent conversations, terminals and context tools, with messages collected in the notification window on the right.
- Inspect memory, CPU and GPU information for the app and related processes, and import VS Code or IDEA keymaps.

#### ⚡ Improvements

- Each run has its own output tab, and consoles display ANSI output colors.
- Trees and scrolling lists show scrollbars; tracked-branch menus expand by remote and directory.
- Local-history rules use a list; project-field explanations use tooltips, and invalid advanced fields reveal their group automatically.
- Versioned releases and daily builds provide the same five system/processor targets, 12 packages and checksum files.

#### 🛠 Fixes

- Selecting an installed plugin no longer always selects the final row.
- Fix macOS package signature structure, Linux RPM runtime dependencies and packages missing the native core.
- Prevent invalid project-group, Git pagination and console placeholder identities from crashing after the framework upgrade.
- Restore project-tree context menus outside row names and preserve custom debug arguments and package-directory working directories.

### Upgrade instructions

- macOS: open the DMG for your processor and drag `Lithe Desktop.app` to Applications; the ZIP contains the same app.
- Homebrew: the repository's `lithe` cask still points to 0.6.7; use the DMG above for 0.7.0 instead of `brew upgrade --cask lithe`.
- Windows: run the x64 installer, or extract the ZIP into its own directory and run `lithe.exe`.
- Linux: prefer the DEB/RPM for your processor so the package manager installs declared dependencies; tar.gz users must provide runtime libraries themselves.
- Migrating from 0.6.x: retain the older client and a data backup, open projects in the new client, review settings and install compatible plugins; complete automatic migration and old-plugin compatibility are not promised.
- This release uses the separate `desktop-v0.7.0` tag; GitHub retains its prerelease flag to protect the older clients' update channel, while the app displays `0.7.0`. The current publishing workflow does not configure a signed update feed; download and install manually.

### Compatibility and known issues

- macOS requires 13.0 or later, with separate Apple Silicon and Intel packages rather than a universal binary.
- Windows packages target x64; Linux packages target x64 and ARM64 and require compatible runtime libraries and graphics support; not every distribution is validated.
- Feature migration continues; successful builds and package checks do not establish complete parity or acceptance of every native workflow.
- macOS uses ad-hoc signing without an Apple Developer ID certificate or notarization; Windows installers lack publisher signing and may trigger security prompts.

If macOS blocks `Lithe Desktop.app`, choose Open Anyway in System Settings → Privacy & Security, or Control-click it in Applications and choose Open. If it remains blocked, run `xattr -dr com.apple.quarantine "/Applications/Lithe Desktop.app"`. For the older `Lithe.app`, the command is `xattr -dr com.apple.quarantine /Applications/Lithe.app`. Use these only for an app from a source you trust.

[Full changelog](https://github.com/1lck/Lithe-IDEA/compare/v0.6.7...desktop-v0.7.0)

### 🙌 感谢贡献者

感谢 [@1lck](https://github.com/1lck)、[@xiaoyumuxi](https://github.com/xiaoyumuxi)、[@Mucheen](https://github.com/Mucheen) 和 [@arkleselect](https://github.com/arkleselect) 对本次版本代码、文档和发布的贡献。

### 🙌 Contributors

Thanks to [@1lck](https://github.com/1lck), [@xiaoyumuxi](https://github.com/xiaoyumuxi), [@Mucheen](https://github.com/Mucheen) and [@arkleselect](https://github.com/arkleselect) for their code, documentation and release contributions.
4 changes: 2 additions & 2 deletions scripts/ci/desktop-release/resolve-release-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# resolve-release-version.sh <version or desktop-v tag>
#
# The version must be MAJOR.MINOR.PATCH, equal the [app] version of desktop/viva.toml (the
# version the package carries), and have stable release notes at docs/releases/desktop-v<version>.md.
# version the package carries), and have stable release notes at docs/releases/v<version>.md.
# When GITHUB_OUTPUT is set, version and tag are written to it.
set -euo pipefail

Expand All @@ -26,7 +26,7 @@ if [[ "$manifest_version" != "$version" ]]; then
fi

tag="desktop-v$version"
node "$ROOT_DIR/scripts/release/notes/validate-stable-release-notes.mjs" "$ROOT_DIR/docs/releases/$tag.md"
node "$ROOT_DIR/scripts/release/notes/validate-stable-release-notes.mjs" "$ROOT_DIR/docs/releases/v$version.md"

if [[ -n "${GITHUB_OUTPUT:-}" ]]; then
{
Expand Down
Loading
Loading