tauri程序github action编译的时候支持中文解决方案

135 阅读1分钟

tauri程序中文遇到的问题:

1.light.exe不支持中文编码,所以使用中文名称的tauri程序没办法编译出来msi的软件包。

2.github action不支持上传中文格式的资源文件,所以如果你使用github action编译的话,往往会失败,但是报错提示确实优点很文件名已存在:

Found draft release with tag DeepChat-v0.0.2 on the release list.
Uploading 深度探索_0.0.2_amd64.deb...
Error: Validation Failed: {"resource":"ReleaseAsset","code":"already_exists","field":"name"} - https://docs.github.com/rest

解决办法

1.不使用中文名称。

2.修改tauri cofnig和tauri action编译机制,git clone 一个tauri action仓库,然后修改代码,当编译完成后,将中文的bundle重命名为英文的,然后再上传就可以了。tauri config中不要使用msi目标