Running light to produce D:\a\PakePlus\PakePlus\src-tauri\target\release\bundle\msi\快手_0.0.1_x64_en-US.msi
Error failed to bundle project: error running light.exe
ELIFECYCLE Command failed with exit code 1.
Error: Command failed with exit code 1: pnpm tauri build
在 Tauri 使用 GitHub Actions 打包 Windows MSI 时,如果遇到 error running light.exe
的错误,特别是在打包路径中包含非 ASCII 字符(如中文字符 抖音
)时,问题可能与 WiX Toolset
不支持文件路径中的非 ASCII 字符有关。
解决方案
1. 避免使用非 ASCII 字符
WiX Toolset
对于文件路径中包含非 ASCII 字符(例如中文字符)可能会出现问题。你可以尝试将生成的 MSI 文件名和路径中的中文字符替换为英文,或者使用拼音代替。
修改 tauri.conf.json
文件中的 produ