Error failed to bundle project: error running light.exe: error running light.exe: failed to run C:\Users\admin\AppData\Local\tauri/WixTools\light.exe
build 报错:
Compiling app v0.1.0 (C:\Users\admin\working\aaa\Pake\src-tauri)
Finished release [optimized] target(s) in 28.97s
Info Target: x64
Running candle for "main.wxs"
Running light to produce C:\Users\admin\working\aaa\Pake\src-tauri\target\x86_64-pc-windows-msvc\release\bundle/msi/XXX_1.0.0_x64_en-US.msi
Error failed to bundle project: error running light.exe: error running light.exe: `failed to run C:\Users\admin\AppData\Local\tauri/WixTools\light.exe`
解决方法:
-
确保安装了红框内的开发工具:https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
-
修改 tauri.conf.json
"bundle": {
"windows": {
"wix": {
"language": "zh-CN" // 语言修改成中文
}
}
}