Skip to content

[bug][windows] MSI 构建依赖 WiX 工具链固定路径 — Tauri 升级会失效 #298

@appergb

Description

@appergb

背景

Windows MSI 构建已知必踩 ICE80 错误(32 位 IME DLL 落在 64 位目录)。release-tauri.yml 有 Repair 步骤手动跑:

$env:LOCALAPPDATA\tauri\WixTools314\light.exe -sice:ICE80 ...

风险

依赖 WixTools314 固定路径。Tauri 升级到新 WiX 版本后,路径变成 WixTools315 或别的,Repair 步骤直接挂。

建议

  • 用 glob 匹配最新 WixTools* 目录而非 hardcode 314
  • 或在 Repair 前 Get-ChildItem ...\tauri\WixTools* | Select -Last 1
  • 或 fork tauri-bundler 暴露 light.exe 透传参数(让 -sice:ICE80 通过 tauri.conf.json 配置)

来源

docs/audit-2026-05-06.md §1.4 中风险 #4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingwindowsWindows-specific issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions