Skip to content

Windows 专用打包 + 中英双语与设置页 - #1

Merged
timeroute merged 4 commits into
mainfrom
cursor/windows-only-packaging-dd67
Oct 10, 2026
Merged

timeroute merged 4 commits into
mainfrom
cursor/windows-only-packaging-dd67

Conversation

@timeroute

@timeroute timeroute commented Oct 10, 2026 •

Copy link
Copy Markdown
Owner

变更

Windows 专用

  • 去掉 Linux / macOS Demo 与编译说明;文档与快捷键仅面向 Windows
  • GitHub Actions(windows-latest)打 MSI:push/PR 上传 artifact,v* tag 发 Release

多语言与设置

  • 新增 src/i18n.rs:中文 / English 字符串表
  • 启动时用 sys-locale 读系统语言:以 zh 开头用中文,否则英文
  • 侧栏与顶栏新增 设置 页:可切换语言、深色/浅色主题
  • 主题从 main 硬编码改为设置页控制(默认深色)
Open in Web Open in Cursor 

cursoragent and others added 2 commits October 10, 2026 06:11
Drop Linux/macOS demo build notes, keep Windows tooling, and add
Buildkite scripts to package MSI on a Windows agent queue.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
Remove Buildkite packaging scripts and document/use a windows-latest
GitHub Actions workflow to build and publish MSI artifacts.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
@cursor cursor Bot changed the title 仅保留 Windows:文档清理 + Buildkite MSI 打包流水线 仅保留 Windows:文档清理 + GitHub Actions MSI 打包 Oct 10, 2026
cursoragent and others added 2 commits October 10, 2026 06:14
Avoid pinning an older Chocolatey WiX version that fails when a newer
build is already present; only install when candle/light are missing.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
Detect system locale (zh → Chinese, otherwise English), localize the
UI, and move language/theme controls into a dedicated Settings section.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
@cursor cursor Bot changed the title 仅保留 Windows:文档清理 + GitHub Actions MSI 打包 Windows 专用打包 + 中英双语与设置页 Oct 10, 2026
@timeroute
timeroute marked this pull request as ready for review October 10, 2026 06:29
@timeroute
timeroute merged commit 58155a2 into main Oct 10, 2026
1 check passed
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-10T06:34:31.602283Z 5cbf876 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 5cbf876b1f

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +36 to +40
$wixBins = Get-ChildItem -Path @(
"${env:ProgramFiles(x86)}\WiX Toolset*\bin",
"${env:ProgramFiles}\WiX Toolset*\bin"
) -Directory -ErrorAction SilentlyContinue |
Select-Object -ExpandProperty FullName

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add the actual WiX bin directories to PATH

Get-ChildItem -Path ...\bin -Directory enumerates child directories inside each bin, rather than the matched bin directory itself (PowerShell documentation). Consequently, this adds no location containing candle.exe or light.exe to PATH. On a runner where WiX is installed but is not already on PATH—or after the fallback Chocolatey install—the second check still fails and aborts the workflow before an MSI can be produced. Enumerate the WiX Toolset* directories and append bin, or use the known bin paths directly.

Useful? React with 👍 / 👎.

Comment on lines +76 to +78
if (-not (Test-Path "wix\main.wxs")) {
cargo wix init --force
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve a stable WiX source for release upgrades

wix/main.wxs is absent from the tracked tree (including a repo-wide search for installer sources), so every clean Actions runner enters this branch. cargo wix init generates fresh GUIDs each time; its default template places one in Product UpgradeCode and uses MajorUpgrade (template). MSIs from separate tagged runs therefore have different upgrade identities, so a later release will not recognize and upgrade/uninstall its predecessor correctly. Commit a generated/customized WXS with a stable UpgradeCode and have CI build from it.

Useful? React with 👍 / 👎.

cursor Bot pushed a commit that referenced this pull request Oct 10, 2026
Remove TitleBar tabs; open Settings from a titlebar gear button.
Ship WiX MSI with Start Menu + Desktop shortcuts and product icon,
without adding the install dir to PATH.

Rebased onto main after PR #1 squash-merge to clear conflicts.

Co-authored-by: 绿岸公式 <chinesejar@gmail.com>
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