summaryrefslogtreecommitdiff
path: root/xmake/plugins/pack
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-22 23:02:16 +0800
committerruki <[email protected]>2023-11-22 23:02:16 +0800
commit0415ab4d9b7ba347aed638422a7b40885da2943e (patch)
tree8428042084067b0b5821eae298466413611da4b9 /xmake/plugins/pack
parent3cf88c4347b0605396b3d5c75f0b34a1c67128ab (diff)
enable long path for xmake/xpack
Diffstat (limited to 'xmake/plugins/pack')
-rw-r--r--xmake/plugins/pack/nsis/main.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/plugins/pack/nsis/main.lua b/xmake/plugins/pack/nsis/main.lua
index de091430d..d7d69fdef 100644
--- a/xmake/plugins/pack/nsis/main.lua
+++ b/xmake/plugins/pack/nsis/main.lua
@@ -224,7 +224,7 @@ function _get_specvars(package)
local install_description_texts = {}
for name, component in table.orderpairs(package:components()) do
local installcmds = _get_component_installcmds(component)
- if installcmds then
+ if installcmds and #installcmds > 0 then
local tag = "Install" .. name
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)
@@ -233,7 +233,7 @@ function _get_specvars(package)
table.insert(install_description_texts, string.format('!insertmacro MUI_DESCRIPTION_TEXT ${%s} $(DESC_%s)', tag, tag))
end
local uninstallcmds = _get_component_uninstallcmds(component)
- if uninstallcmds then
+ if uninstallcmds and #uninstallcmds > 0 then
local tag = "Uninstall" .. name
table.insert(install_sections, string.format('Section "un.%s" %s', component:title(), tag))
table.insert(install_sections, uninstallcmds)