summaryrefslogtreecommitdiff
path: root/tests/plugins
diff options
context:
space:
mode:
authorruki <[email protected]>2023-11-22 00:48:56 +0800
committerruki <[email protected]>2023-11-22 00:48:56 +0800
commit8c8f130f69343bbb50dafa718a8fe6df63497974 (patch)
tree0c5831419ce91e09f934ec1390a31c59091f2305 /tests/plugins
parent574d9bca0e5d7a01fdf2500ac83c75f5927bb69d (diff)
add title
Diffstat (limited to 'tests/plugins')
-rw-r--r--tests/plugins/pack/xmake.lua15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua
index d10af4d54..fcf0f9e8c 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -20,12 +20,15 @@ target("foo")
xpack("test")
set_formats("nsis", "zip", "targz")
- set_description("hello")
+ set_title("hello")
+ set_description("A test installer.")
+ set_homepage("https://xmake.io")
set_licensefile("LICENSE.md")
add_targets("test", "foo")
set_basename("test-$(plat)-$(arch)-v$(version)")
add_installfiles("src/(assets/*.png)", {prefixdir = "images"})
set_iconfile("src/assets/xmake.ico")
+ add_components("LongPath")
after_installcmd(function (package, batchcmds)
batchcmds:mkdir(package:installdir("resources"))
@@ -38,9 +41,13 @@ xpack("test")
batchcmds:rmdir(package:installdir("stub"))
end)
- add_nsis_installcmds("Enable Long Path", [[
+xpack_component("LongPath")
+ set_title("Enable Long Path")
+ set_description("Increases the maximum path length limit, up to 32,767 characters (before 256).")
+ on_installcmd(function (component, batchcmds)
+ batchcmds:rawcmd("nsis", [[
${If} $NoAdmin == "false"
; Enable long path
WriteRegDWORD ${HKLM} "SYSTEM\CurrentControlSet\Control\FileSystem" "LongPathsEnabled" 1
- ${EndIf}]], {description = "Increases the maximum path length limit, up to 32,767 characters (before 256)."})
-
+ ${EndIf}]])
+ end)