summaryrefslogtreecommitdiff
path: root/xmake/includes/xpack/xmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-15 23:39:08 +0800
committerruki <[email protected]>2023-11-15 23:39:08 +0800
commit355df6fd41db138b340dee56248f8c3fe0dcc75f (patch)
treecb65f33b54de72ad3e275060437dd10c37c6ae98 /xmake/includes/xpack/xmake.lua
parent3e5f3c41e0eebf9103118b5127a0b78f5df6873f (diff)
add nsis sections
Diffstat (limited to 'xmake/includes/xpack/xmake.lua')
-rw-r--r--xmake/includes/xpack/xmake.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/xmake/includes/xpack/xmake.lua b/xmake/includes/xpack/xmake.lua
index 5314e90ea..a8ce5f0fb 100644
--- a/xmake/includes/xpack/xmake.lua
+++ b/xmake/includes/xpack/xmake.lua
@@ -79,7 +79,14 @@ local apis = {
},
keyvalues = {
-- set the spec variable
- "xpack.set_specvar"
+ "xpack.set_specvar",
+ -- add nsis sections, e.g.
+ --[[
+ add_nsis_sections("Enable Long Path",
+ 'WriteRegDWORD ${HKLM} "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1',
+ {description = "Increases the maximum path length limit, up to 32,767 characters (before 256)."})
+ --]]
+ "xpack.add_nsis_sections"
}
}
interp_add_scopeapis(apis)