xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
10.19k stars 788 forks source link

localization support for the wix format of xpack. #5878

Open jinke18 opened 1 day ago

jinke18 commented 1 day ago

你在什么场景下需要该功能?

localization support for the wix format of xpack.

描述可能的解决方案

I want to add localization support for the wix format of xpack. Could you give me some suggestions for modifying xpack? wix use .wxl file to support localization.

wix build msi.wxs -loc msi.wxl -arch x64 -o xxxx.msi

I can submit a pr according to the suggestions.

描述你认为的候选方案

No response

其他信息

No response

waruqi commented 23 hours ago

Add a new xpack api for wix, xpack.set_wix_locationfile in path api scope. https://github.com/xmake-io/xmake/blob/6227615261ce6c2109c0c8324a83b582b25bd337/xmake/includes/xpack/xmake.lua#L79

like nsis, https://github.com/xmake-io/xmake/blob/6227615261ce6c2109c0c8324a83b582b25bd337/xmake/includes/xpack/xmake.lua#L71