Skip to content

feat(windows): support signed in-app updates - #183

Merged
1lck merged 10 commits into
1lck:preview/0.3.0from
li6667:feature/windows-in-app-updater
Aug 19, 2026
Merged

1lck merged 10 commits into
1lck:preview/0.3.0from
li6667:feature/windows-in-app-updater

Conversation

@li6667

@li6667 li6667 commented Aug 19, 2026

Copy link
Copy Markdown
Contributor

Replaces #182 with the maintainer-requested preview/0.3.0 base.

Summary / 功能概述

Closes #144.

Enable signed in-app updates for the Windows Tauri application.

为 Windows Tauri 应用完善带签名的应用内更新功能。

  • configure the Tauri updater endpoint and public key during release packaging
  • generate and publish signed Windows updater installers
  • generate and upload the Tauri latest.json manifest
  • connect the existing Windows update control to the title bar
  • distinguish available, up-to-date, suppressed, and failed update checks
  • show the current update status in Windows settings
  • document repository signing-key configuration and release verification

中文说明:

  • 在发布构建时注入 Tauri updater 地址和公钥
  • 生成并发布带签名的 Windows 更新安装器
  • 生成并上传 Tauri latest.json 更新清单
  • 将项目已有的 Windows 更新控件接入标题栏
  • 区分有更新、已是最新版、已忽略和检查失败状态
  • 在 Windows 设置页中显示当前更新状态
  • 补充签名密钥配置和发布验证文档

Repository configuration / 仓库配置

Windows releases require / Windows 发布需要配置:

  • Actions secret: TAURI_SIGNING_PRIVATE_KEY
  • Optional Actions secret: TAURI_SIGNING_PRIVATE_KEY_PASSWORD
  • Actions variable: TAURI_UPDATER_PUBLIC_KEY

The updater private key must only be stored in GitHub Actions secrets.

更新私钥只能保存在 GitHub Actions Secrets 中,不能提交到代码库。

Verification / 验证情况

  • Windows TypeScript typecheck passed / TypeScript 类型检查通过
  • Windows frontend production build passed / Windows 前端生产构建通过
  • Windows updater manifest test passed / 更新清单测试通过
  • Windows boundary verification passed / Windows 边界检查通过
  • Windows release build completed successfully / Windows 发布构建成功
  • verified signed updater assets and latest.json / 已验证签名更新包及 latest.json
  • verified in-app update discovery / 已验证应用内发现新版本
  • verified download and installation / 已验证应用内下载和安装
  • verified automatic relaunch after updating / 已验证更新完成后自动重启
  • verified the up-to-date state after updating / 已验证最新版状态提示

Maintainer notes / 维护者说明

  • The test key used in the contributor fork is not included in this PR.
  • Before publishing an official Windows release, repository maintainers must generate their own Tauri updater keypair and configure the required GitHub Actions secret and variable.
  • Existing Windows Authenticode settings remain supported and are independent from the Tauri updater signature.
  • No native macOS code under Sources/Lithe/ was changed.

中文说明:

  • 贡献者 fork 中使用的测试密钥未包含在本 PR 中。
  • 正式发布 Windows 版本前,上游维护者需要自行生成 Tauri updater 密钥对,并配置对应的 GitHub Actions Secret 和 Variable。
  • 现有 Windows Authenticode 签名配置继续保留,它与 Tauri updater 签名用途不同。
  • 本 PR 没有修改 Sources/Lithe/ 下的 macOS 原生代码。

@li6667
li6667 requested a review from 1lck as a code owner August 19, 2026 09:59
@1lck
1lck merged commit 73d59cd into 1lck:preview/0.3.0 Aug 19, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants