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
52 changes: 42 additions & 10 deletions .github/workflows/desktop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -169,12 +169,12 @@ jobs:
- name: Vet and test
run: ./scripts/desktop/check.sh

- name: Upload native cache regression report
- name: Upload native verification reports
if: always()
uses: actions/upload-artifact@v7
with:
name: core-cache-${{ runner.os }}-${{ runner.arch }}
path: .artifacts/test-stability/core-cache.junit.xml
path: .artifacts/test-stability/
if-no-files-found: warn
retention-days: 14

Expand Down Expand Up @@ -225,23 +225,39 @@ jobs:
- name: Capture native settings and diagnostic screenshots
env:
LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual
run: ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s
run: |
./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline|TestVisualUpdatesPage|TestVisualUpdateDialog)$' -count=1 -timeout=120s
test_bash="$BASH"
if command -v cygpath >/dev/null 2>&1; then
test_bash="$(cygpath -w "$BASH")"
case "$test_bash" in
*.[Ee][Xx][Ee]) ;;
*) test_bash="$test_bash.exe" ;;
esac
fi
for language in en zh-Hans; do
LITHE_VISUAL_LANGUAGE="$language" LITHE_VISUAL_OUTPUT_DIR="$LITHE_VISUAL_OUTPUT_DIR/$language" \
node .agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs \
--report ".artifacts/test-stability/global-sdk-$language.json" --suite-timeout-ms 240000 -- \
"$test_bash" scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \
-run '^TestVisualSettings$/33-settings-toolchains' -count=1 -timeout=120s
done

- name: Upload native settings visual evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: native-settings-visual-${{ runner.os }}-${{ runner.arch }}
path: .artifacts/native-settings-visual/*.png
path: .artifacts/native-settings-visual/**/*.png
if-no-files-found: error
retention-days: 14

- name: Upload native cache regression report
- name: Upload native verification reports
if: always()
uses: actions/upload-artifact@v7
with:
name: core-cache-${{ runner.os }}-${{ runner.arch }}
path: .artifacts/test-stability/core-cache.junit.xml
path: .artifacts/test-stability/
if-no-files-found: warn
retention-days: 14

Expand Down Expand Up @@ -309,23 +325,39 @@ jobs:
- name: Capture native settings and diagnostic screenshots
env:
LITHE_VISUAL_OUTPUT_DIR: ${{ github.workspace }}/.artifacts/native-settings-visual
run: ./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline)$' -count=1 -timeout=120s
run: |
./scripts/desktop/desktop-go.sh test -tags 'vivahead lithevisual' ./internal/settingswindow ./internal/workbench -run '^(TestVisualNativeSettingsForm|TestVisualDiagnosticUnderline|TestVisualUpdatesPage|TestVisualUpdateDialog)$' -count=1 -timeout=120s
test_bash="$BASH"
if command -v cygpath >/dev/null 2>&1; then
test_bash="$(cygpath -w "$BASH")"
case "$test_bash" in
*.[Ee][Xx][Ee]) ;;
*) test_bash="$test_bash.exe" ;;
esac
fi
for language in en zh-Hans; do
LITHE_VISUAL_LANGUAGE="$language" LITHE_VISUAL_OUTPUT_DIR="$LITHE_VISUAL_OUTPUT_DIR/$language" \
node .agents/skills/write-stable-tests/scripts/run-go-tests-with-timing.mjs \
--report ".artifacts/test-stability/global-sdk-$language.json" --suite-timeout-ms 240000 -- \
"$test_bash" scripts/desktop/desktop-go.sh test -json -tags 'vivahead lithevisual' ./internal/settingswindow \
-run '^TestVisualSettings$/33-settings-toolchains' -count=1 -timeout=120s
done

- name: Upload native settings visual evidence
if: always()
uses: actions/upload-artifact@v7
with:
name: native-settings-visual-${{ runner.os }}-${{ runner.arch }}
path: .artifacts/native-settings-visual/*.png
path: .artifacts/native-settings-visual/**/*.png
if-no-files-found: error
retention-days: 14

- name: Upload native cache regression report
- name: Upload native verification reports
if: always()
uses: actions/upload-artifact@v7
with:
name: core-cache-${{ runner.os }}-${{ runner.arch }}
path: .artifacts/test-stability/core-cache.junit.xml
path: .artifacts/test-stability/
if-no-files-found: warn
retention-days: 14

Expand Down
2 changes: 1 addition & 1 deletion desktop/viva.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ name = "Lithe Desktop"
# A separate identity from the SwiftUI client (app.lithe.desktop), so both can be installed
# while this client grows.
id = "app.lithe.viva"
version = "0.7.0"
version = "0.8.0"
executable = "lithe"
package = "./cmd/lithe"
# The full-bleed square of the SwiftUI client's icon; viva package shapes it into the macOS tile.
Expand Down
4 changes: 2 additions & 2 deletions docs/releases/v0.7.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Lithe 0.7.0 带来全新的跨平台桌面客户端,将编辑、Git、插件
- Windows:运行 x64 安装程序,或将 ZIP 解压到独立目录后运行 `lithe.exe`。
- Linux:优先使用对应架构的 DEB/RPM,让包管理器安装声明的依赖;tar.gz 用户需要自行满足运行库要求。
- 从 0.6.x 迁移:先保留旧版和数据备份,在新客户端打开项目、重新核对设置并安装兼容插件;不承诺完整自动迁移或旧插件直接兼容。
- 本次使用独立的 `desktop-v0.7.0` 发布标签;为保护旧客户端的更新渠道,GitHub 仍标为 prerelease,程序内显示 `0.7.0`。当前发布流程没有配置签名更新源,请手动下载安装。
- 本次使用独立的 `desktop-v0.7.0` 正式发布标签,程序内显示 `0.7.0`;旧客户端的 latest 更新入口保持不变。当前发布流程没有配置签名更新源,请手动下载安装。

### 兼容性与已知问题

Expand Down Expand Up @@ -117,7 +117,7 @@ This release focuses on the new desktop client and its workflows; plugins provid
- 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.
- This stable release uses the separate `desktop-v0.7.0` tag and displays `0.7.0` in the app; the older clients' latest update entry stays unchanged. The current publishing workflow does not configure a signed update feed; download and install manually.

### Compatibility and known issues

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

Lithe Desktop 0.8.0 新增全局 JDK 管理、项目与模块编译设置,并改善诊断波浪线和终端操作。本版为正式版本。

### 下载

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

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

### 重点更新

本次重点是 Java 项目配置,以及编辑器和终端中的日常操作。

#### ✨ 新功能

- 更新设置新增正式版与 AutoBuild 渠道,以及自定义更新源。
- 标题栏提供更新入口,支持先看日志,再下载、跳过或稍后处理。
- 无需打开项目,即可自动识别 JDK、手动添加多个版本并选择全局默认版本。
- 项目可单独覆盖全局 JDK,新启动的构建、运行和语言服务使用同一解析结果。
- 配合新版 Java Support、Maven 或 Gradle 插件,设置项目默认及各模块的目标字节码。
- 在配套插件的本地依赖设置中引用 JAR,支持普通 Java、Eclipse、Maven 和 Gradle 项目。

#### ⚡ 改进

- 保存设置时保留本版不认识的配置,切换更新渠道前保留可恢复的设置快照。
- 编译设置显示真实配置来源和继承值,保存时检查外部改动,避免覆盖较新的配置。
- 终端持续输出时保留选区,滚动丢弃旧行后保留仍存在的选中内容。
- Windows 可识别通过 Microsoft Store 安装的 PowerShell 7。

#### 🛠 修复

- 诊断波浪线更细,并正确对齐 Tab、中文和表情后的字符。
- Windows 终端可用 Ctrl+C 中断程序,清除 PowerShell 后正确重绘提示符。
- 自动选择工具链时显示实际生效版本,避免把已有 JDK 显示为未找到安装。

### 升级说明

- macOS:选择对应芯片的 DMG,将 `Lithe Desktop.app` 拖入“应用程序”。
- Homebrew:当前 `lithe` 配方仍指向旧客户端 0.6.7;安装本版请使用上述 DMG。
- Windows:运行 x64 安装程序,或将 ZIP 解压到独立目录后运行 `lithe.exe`。
- Linux:使用对应架构的 DEB/RPM;tar.gz 用户需要自行满足运行库要求。
- 先升级桌面端,再按项目需要更新 Java Support 2.0.0、Maven 1.0.0 或 Gradle 2.0.0;旧桌面端可继续使用原有兼容插件版本。
- 在“设置 → 构建、执行、部署”管理全局 JDK;编译器子页设置字节码,本地 JAR 入口位于对应插件设置中。
- 修改 JDK 后,重启已有语言服务及运行或调试会话;当前没有配置签名更新源,请手动下载安装。

### 兼容性与已知问题

- macOS 最低为 13.0,分别提供 Apple Silicon 和 Intel 包;Windows 桌面端提供 x64 包。
- Linux 提供 x64 和 ARM64 包,需要兼容的运行库和图形环境,未验证所有发行版。
- 配套插件单独安装;更新 Maven 插件后可在 Windows 安装使用,新版编译和 JAR 设置需要本版桌面端。
- 本次发布尚未配置更新签名密钥,自动更新暂不启用,请手动下载安装。
- 新客户端的功能迁移仍在进行,组件与无头验证不代表旧版功能已全部对齐。
- macOS 使用临时签名且未公证,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/desktop-v0.7.0...desktop-v0.8.0)

---

## English

Lithe Desktop 0.8.0 adds global JDK management, project and module compiler settings, and improves diagnostic underlines and terminal operations. This is a stable release.

### 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.8.0)

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

### Highlights

This release focuses on Java project configuration and everyday editor and terminal operations.

#### ✨ New features

- Update settings add Stable and AutoBuild channels and configurable update sources.
- The title-bar update entry shows changes before Download, Skip This Version or Later.
- Detect JDKs, add multiple versions manually and choose a global default without opening a project.
- Override the global JDK per project; new builds, runs and language services share the same resolution.
- Set project defaults and per-module bytecode targets with the updated Java Support, Maven or Gradle plugin.
- Reference local JARs through plugin settings for plain Java, Eclipse, Maven and Gradle projects.

#### ⚡ Improvements

- Saving preserves settings this version cannot read; channel switches retain a settings snapshot that can be restored.
- Compiler settings show their real sources and inherited values, checking external changes before saving.
- Terminal output preserves selections, retaining selected content that remains after older lines scroll out of the buffer.
- Windows detects PowerShell 7 installed through Microsoft Store.

#### 🛠 Fixes

- Thinner diagnostic waves align correctly with characters after tabs, Chinese text and emoji.
- Ctrl+C interrupts programs in Windows terminals, and clearing PowerShell redraws its prompt correctly.
- Automatic toolchain selection shows the effective version instead of reporting an existing JDK as missing.

### Upgrade instructions

- macOS: open the DMG for your processor and drag `Lithe Desktop.app` to Applications.
- Homebrew: the `lithe` cask still targets the older 0.6.7 client; use the DMG above for this release.
- Windows: run the x64 installer, or extract the ZIP into its own directory and run `lithe.exe`.
- Linux: use the DEB/RPM for your architecture; tar.gz users must provide the required runtime libraries.
- Upgrade the desktop first, then update Java Support to 2.0.0, Maven to 1.0.0 or Gradle to 2.0.0 as needed; older hosts retain compatible plugin versions.
- Manage global JDKs in Settings → Build, Execution, Deployment; compiler subpages set bytecode, and each plugin provides its local JAR settings.
- Restart existing language services and run or debug sessions after changing JDKs; no signed update feed is configured, so install manually.

### Compatibility and known issues

- macOS requires 13.0 or newer, with separate Apple Silicon and Intel packages; the Windows desktop package targets x64.
- Linux packages target x64 and ARM64, requiring compatible libraries and a graphical environment; not every distribution is verified.
- Install companion plugins separately; updating Maven enables Windows installation, and the new compiler/JAR settings require this desktop release.
- Update signing keys are not configured for this release; automatic updates remain disabled, so install manually.
- Feature migration continues; component and headless checks do not establish complete parity with the older client.
- macOS packages use ad hoc signing without notarization; Windows installers have no publisher signature and may trigger system prompts.

If macOS cannot open `Lithe Desktop.app`, 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`, use `xattr -dr com.apple.quarantine /Applications/Lithe.app`. Use these commands only for an app from a source you trust.

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

### 🙌 感谢贡献者

感谢 [@1lck](https://github.com/1lck) 和 [@xiaoyumuxi](https://github.com/xiaoyumuxi)。

### 🙌 Contributors

Thanks to [@1lck](https://github.com/1lck) and [@xiaoyumuxi](https://github.com/xiaoyumuxi).
Loading
Loading