summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorruki <[email protected]>2024-05-28 10:03:02 +0800
committerGitHub <[email protected]>2024-05-28 10:03:02 +0800
commit6975cf5ff7c120bd537211ea167c157b45780d0a (patch)
tree22f1aa0d71a7a3d0a23f78756667c90d3cd1d879 /tests
parent707bfc36f9b4a14c42bde2cb115d86b33218bcc9 (diff)
parenteb4ad9b4c028807d8bfddff1a7834c0069ba49b3 (diff)
Merge pull request #5153 from xmake-io/wix
Xpack: wix toolset support
Diffstat (limited to 'tests')
-rw-r--r--tests/plugins/pack/xmake.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/plugins/pack/xmake.lua b/tests/plugins/pack/xmake.lua
index 1ce179b33..437ae8a37 100644
--- a/tests/plugins/pack/xmake.lua
+++ b/tests/plugins/pack/xmake.lua
@@ -19,7 +19,7 @@ target("foo")
add_packages("zlib")
xpack("test")
- set_formats("nsis", "srpm", "rpm", "zip", "targz", "srczip", "srctargz", "runself")
+ set_formats("nsis", "srpm", "rpm", "zip", "targz", "srczip", "srctargz", "runself", "wix")
set_title("hello")
set_author("ruki")
set_description("A test installer.")
@@ -61,6 +61,11 @@ 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("wix", [[
+ <RegistryKey Root="HKLM" Key="SYSTEM\CurrentControlSet\Control\FileSystem">
+ <RegistryValue Type="integer" Name="LongPathsEnabled" Value="1" KeyPath="yes"/>
+ </RegistryKey>
+ ]])
batchcmds:rawcmd("nsis", [[
${If} $NoAdmin == "false"
; Enable long path