windows下编译tauri时报错奇怪的错误
error running light.exe
这个是因为中文字符造成的,目前仅在windows下发现,应该是wix(Windows Installer XML Toolset)的问题。
解决方案也很简单,直接编辑 src-tauri/tauri.conf.json,找到 bundle -> windows,增加一个wix的配置即可。
如果是其他语言,需要切换为对应的语言区域代码即可
示例如下
"bundle": {
"active": true,
"category": "Productivity",
"copyright": "0ldm0s",
"deb": {
"depends": []
},
"externalBin": [],
"icon": [
"icons/32x32.png",
"icons/128x128.png",
"icons/[email protected]",
"icons/icon.icns",
"icons/icon.ico"
],
"identifier": "su.tuu.admin",
"longDescription": "",
"macOS": {
"entitlements": null,
"exceptionDomain": "",
"frameworks": [],
"providerShortName": null,
"signingIdentity": null
},
"resources": [],
"shortDescription": "",
"targets": "all",
"windows": {
"wix": {
"language": "zh-CN"
},
"certificateThumbprint": null,
"digestAlgorithm": "sha256",
"timestampUrl": ""
}
}
再次编译就正常结束了。