summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2024-07-07 10:30:34 +0800
committerruki <[email protected]>2024-07-07 10:31:00 +0800
commite1986ee24e3dd32186fe7f8b5b9e7175fdf873c4 (patch)
treeda6a1c30ad188f5b22790f99a7dfebed385a8a6c
parent1556ddbf9c1444eb07b836fa8c845ea7a099a8c5 (diff)
add xpack component description #5310
-rw-r--r--xmake/plugins/pack/nsis/main.lua2
1 files changed, 1 insertions, 1 deletions
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)