Error failed to bundle project: error running light.exe报错解决方法

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`

解决方法:

  1. 确保安装了红框内的开发工具:https://visualstudio.microsoft.com/zh-hans/visual-cpp-build-tools/
    Error failed to bundle project: error running light.exe报错解决方法_第1张图片

  2. 修改 tauri.conf.json

"bundle": {
  "windows": {
    "wix": {
      "language": "zh-CN" // 语言修改成中文
    }
  }
}

参考链接:https://github.com/tauri-apps/tauri/issues/1976

你可能感兴趣的:(windows,windows)