美文网首页
beeware 打包MSI 安装界面改为中文的办法

beeware 打包MSI 安装界面改为中文的办法

作者: Spooking | 来源:发表于2022-08-22 00:00 被阅读0次

默认用 briefcase package windows 打包出来的安装包界面是英文的。
我在 wxs文件中修改了 Product@Language="2052" 依然问题没有解决。
直接 修改 python的 Lib\site-packages\briefcase\platforms\windows_init_.py
添加 -cultures:zh-CN

self.logger.info("Linking application installer...")
            with self.input.wait_bar("Linking..."):
                self.subprocess.run(
                    [
                        self.wix.light_exe,
                        "-nologo", 
                        "-ext",
                        "WixUtilExtension",
                        "-ext",
                        "WixUIExtension",
                        "-cultures:zh-CN", ############## 这一行是新加的 ############
                        "-loc",
                        "unicode.wxl",
                        "-o",
                        self.distribution_path(app, packaging_format="msi"),
                        f"{app.app_name}.wixobj",
                        f"{app.app_name}-manifest.wixobj",
                    ],

再次运行 briefcase package windows ,完美解决。

如果还有什么更好的方法,记得分享给我

相关文章

网友评论

      本文标题:beeware 打包MSI 安装界面改为中文的办法

      本文链接:https://www.haomeiwen.com/subject/zzuwgrtx.html