From e1986ee24e3dd32186fe7f8b5b9e7175fdf873c4 Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 7 Jul 2024 10:30:34 +0800 Subject: add xpack component description #5310 --- xmake/plugins/pack/nsis/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/plugins/pack/nsis/main.lua b/xmake/plugins/pack/nsis/main.lua index c1a565371..2dc304b7b 100644 --- a/xmake/plugins/pack/nsis/main.lua +++ b/xmake/plugins/pack/nsis/main.lua @@ -233,7 +233,7 @@ function _get_specvars(package) table.insert(install_sections, string.format('Section%s "%s" %s', component:get("default") == false and " /o" or "", component:title(), tag)) table.insert(install_sections, installcmds) table.insert(install_sections, "SectionEnd") - table.insert(install_descs, string.format('LangString DESC_%s ${LANG_ENGLISH} "%s"', tag, description)) + table.insert(install_descs, string.format('LangString DESC_%s ${LANG_ENGLISH} "%s"', tag, component:description() or "")) table.insert(install_description_texts, string.format('!insertmacro MUI_DESCRIPTION_TEXT ${%s} $(DESC_%s)', tag, tag)) end local uninstallcmds = _get_component_uninstallcmds(component) -- cgit v1.3.1